Skip to content

Commit 24e4ed0

Browse files
author
my
committed
Homework for lection 40 (simple React components developing) commit #1
1 parent 420f376 commit 24e4ed0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+48959
-7050
lines changed

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/node_modules
2+
/public
3+
/dev
4+
/cache
5+
/storybook-static
6+
/.storybook

.eslintrc.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,29 @@
11
module.exports = {
2+
parser: "@typescript-eslint/parser",
3+
plugins: ["@typescript-eslint"],
24
env: {
35
browser: true,
46
es2021: true,
57
jest: true,
68
node: true,
79
},
8-
extends: ["eslint:recommended", "prettier"],
10+
extends: [
11+
"plugin:jest/recommended",
12+
"plugin:@typescript-eslint/eslint-recommended",
13+
"plugin:@typescript-eslint/recommended",
14+
"eslint:recommended",
15+
"prettier",
16+
],
917
parserOptions: {
1018
ecmaVersion: "latest",
1119
sourceType: "module",
1220
},
1321
rules: {
14-
indent: ["error", "tab"],
22+
"@typescript-eslint/no-var-requires": 0,
23+
"@typescript-eslint/no-unused-vars": 0,
24+
"no-unused-vars": 0,
25+
"no-undef": 0,
26+
indent: 0,
1527
"linebreak-style": ["error", "unix"],
1628
quotes: ["error", "double"],
1729
semi: ["error", "always"],

.github/workflows/codesandbox-link-comment.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/coverage.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Coverage
2+
3+
on: pull_request
4+
5+
jobs:
6+
coverage:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/setup-node@v2
10+
with:
11+
node-version: 14
12+
- uses: actions/checkout@v2
13+
- uses: artiomtr/[email protected]
14+
with:
15+
github-token: ${{ secrets.GITHUB_TOKEN }}
16+
threshold: 60

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
node_modules
2+
coverage
3+
dev
4+
public
5+
dev
6+
public
7+
storybook-static

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/node_modules
2+
/public
3+
/dev
4+
/cache
5+
/storybook-static
6+
/.storybook

.storybook/main.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
3+
addons: [
4+
"@storybook/addon-links",
5+
"@storybook/addon-essentials",
6+
"@storybook/addon-interactions",
7+
],
8+
framework: "@storybook/react",
9+
core: {
10+
builder: "webpack5",
11+
},
12+
};

.storybook/preview.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export const parameters = {
2+
actions: { argTypesRegex: "^on[A-Z].*" },
3+
controls: {
4+
matchers: {
5+
color: /(background|color)$/i,
6+
date: /Date$/,
7+
},
8+
},
9+
};

.stylelintrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": [
3+
"stylelint-config-standard-scss",
4+
"stylelint-config-standard",
5+
"stylelint-config-prettier"
6+
]
7+
}

0 commit comments

Comments
 (0)