Skip to content

Commit 1449559

Browse files
authored
basic lint conf
1 parent 319c8cc commit 1449559

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.eslintrc

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"extends": [
4+
"react-app",
5+
"airbnb",
6+
"plugin:jsx-a11y/recommended",
7+
"prettier",
8+
"prettier/react",
9+
"plugin:@typescript-eslint/recommended"
10+
],
11+
"plugins": [
12+
"jsx-a11y",
13+
"prettier",
14+
"@typescript-eslint"
15+
],
16+
"rules": {
17+
"semi": 0,
18+
"import/prefer-default-export": 1,
19+
"react/destructuring-assignment": 0,
20+
"no-plusplus": 0,
21+
"no-unused-vars": 1,
22+
"react/prop-types": 0,
23+
"react/no-access-state-in-setstate": 1,
24+
"react/sort-comp": 0,
25+
"react/no-array-index-key": 1,
26+
"no-restricted-syntax": 0,
27+
"class-methods-use-this": 0,
28+
"react/no-unused-state": 1,
29+
"react/prefer-stateless-function": 0,
30+
"no-useless-constructor": 1,
31+
"no-param-reassign": 1,
32+
"consistent-return": 1,
33+
"array-callback-return": 1,
34+
"react/jsx-props-no-spreading": 1,
35+
"react-hooks/rules-of-hooks": 0, // Checks rules of Hooks
36+
"react-hooks/exhaustive-deps": 1, // Checks effect dependencies
37+
"jsx-a11y/label-has-associated-control": 1,
38+
"jsx-a11y/no-onchange": 1,
39+
"react/jsx-filename-extension": [
40+
1,
41+
{
42+
"extensions": [
43+
".js",
44+
".jsx"
45+
]
46+
}
47+
],
48+
"prettier/prettier": [
49+
"error",
50+
{
51+
"semi": true
52+
}
53+
]
54+
}
55+
}

0 commit comments

Comments
 (0)