-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
53 lines (53 loc) · 1.5 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
46
47
48
49
50
51
52
53
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"extends": [
"airbnb",
"airbnb/hooks",
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:jsx-a11y/recommended"
],
"parserOptions": {
"ecmaVersion": 2020,
"ecmaFeatures": {
"modules": true,
"jsx": true
},
"sourceType": "module",
"requireConfigFile": false
},
"ignorePatterns": "node_modules",
"rules": {
"react/jsx-filename-extension": [1, { "extensions": ["js", "jsx"] }],
"react/prop-types": ["off"],
"react/jsx-props-no-spreading":["off"],
"jsx-a11y/click-events-have-key-events":"off",
"no-unneeded-ternary":"off",
"jsx-a11y/no-noninteractive-element-interactions":"off",
"react/no-array-index-key":["off"],
"react-hooks/exhaustive-deps": ["warn"],
"arrow-parens": ["warn", "as-needed"],
"no-unused-vars": ["warn"],
"no-console":"warn",
"no-undef":"off",
"import/prefer-default-export": ["off"],
"jsx-a11y/no-autofocus": "off",
"jsx-a11y/accessible-emoji":"off",
"import/no-unresolved": "off",
"import/extensions":"off",
"spaced-comment": ["error", "always"] ,
"no-shadow":["off"],
"no-use-before-define": ["error", { "variables": false }],
"jsx-a11y/no-static-element-interactions":["off"],
"no-useless-return":["off"],
"no-constant-condition":"off",
"array-callback-return":"off",
"consistent-return":"off"
}
}