Skip to content

Commit cefabd8

Browse files
committed
created stepper component and setup eslint config
1 parent dfc8449 commit cefabd8

9 files changed

Lines changed: 24327 additions & 31371 deletions

File tree

.eslintrc

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,33 @@
11
{
2-
"parser": "@typescript-eslint/parser",
3-
"plugins": ["@typescript-eslint", "react-hooks"],
4-
"extends": [
5-
"standard",
6-
"standard-react",
7-
"plugin:@typescript-eslint/recommended",
8-
"plugin:@typescript-eslint/eslint-recommended"
9-
],
10-
"settings": {
11-
"react": {
12-
"version": "18"
13-
}
2+
"ignorePatterns": ["**/*.d.ts", "node_modules/", "src/stories", "src/tests"],
3+
"extends": [
4+
"eslint:recommended",
5+
"plugin:@typescript-eslint/recommended",
6+
"plugin:react/recommended",
7+
"plugin:react-hooks/recommended"
8+
],
9+
"parser": "@typescript-eslint/parser",
10+
"parserOptions": {
11+
"ecmaFeatures": {
12+
"jsx": true
1413
},
15-
"rules": {
16-
"@typescript-eslint/explicit-function-return-type": "offered",
17-
"@typescript-eslint/no-empty-function": "off",
18-
"@typescript-eslint/no-explicit-any": "off",
19-
"@typescript-eslint/no-unused-vars": "error",
20-
"react-hooks/rules-of-hooks": "error",
21-
"react-hooks/exhaustive-deps": "warn",
22-
"react/prop-types": "off"
14+
"project": "./tsconfig.json"
15+
},
16+
"plugins": [
17+
"@typescript-eslint",
18+
"react",
19+
"react-hooks"
20+
],
21+
"rules": {
22+
"no-console": "warn",
23+
"@typescript-eslint/explicit-function-return-type": "error",
24+
"react/prop-types": "warn",
25+
"indent": ["error", 2],
26+
"arrow-body-style": ["error", "as-needed"]
27+
},
28+
"settings": {
29+
"react": {
30+
"version": "^18.0.2"
2331
}
24-
}
32+
}
33+
}

0 commit comments

Comments
 (0)