-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
45 lines (45 loc) · 1.36 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"settings": {
"react": {
"version": "17.0"
}
},
"env": {
"es2021": true,
"browser": true,
"jest": true,
"node": true
},
"extends": ["react-app", "airbnb", "plugin:jsx-a11y/recommended", "prettier"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react", "react-hooks", "jsx-a11y", "import", "prettier"],
"rules": {
"prettier/prettier": "error",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/state-in-constructor": "off",
"arrow-body-style": ["error", "as-needed"],
"eqeqeq": "error",
"jsx-quotes": ["error", "prefer-double"],
"no-console": "error",
"no-alert": "error",
"no-bitwise": "error",
"no-duplicate-imports": "error",
"no-else-return": "error",
"no-self-compare": "error",
"no-shadow": "error",
"quotes": ["error", "single", { "avoidEscape": true }],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"react/prop-types": "off",
"react/react-in-jsx-scope": 0,
"react/jsx-handler-names": 0,
"react/jsx-curly-newline": 0
}
}