-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
66 lines (66 loc) · 1.86 KB
/
.eslintrc
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
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"extends": [
"plugin:css-modules/recommended",
"eslint:recommended",
"plugin:react/recommended"
],
"env": {
"browser": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
"css-modules",
"import",
"react-hooks",
"react",
"simple-import-sort"
],
"rules": {
"array-bracket-spacing": [ "error", "always" ],
"arrow-parens": [ "error", "as-needed" ],
"comma-dangle": [ "error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
} ],
"css-modules/no-unused-class": "off",
"function-paren-newline": "off",
"implicit-arrow-linebreak": "off",
"import/no-cycle": 1,
"import/no-self-import": 1,
"indent": [ "error", 2, { "SwitchCase": 1 } ],
"jsx-quotes": [ "error", "prefer-double"],
"max-len": "off",
"no-console": "off",
"no-undef": 2,
"no-unused-expressions": 2,
"object-curly-newline": "off",
"object-curly-spacing": [ "error", "always" ],
"quotes": [ "error", "single", { "allowTemplateLiterals": true } ],
"react-hooks/exhaustive-deps": "error",
"react-hooks/rules-of-hooks": 0,
"react/display-name": "off",
"react/jsx-curly-spacing": [ "error", { "children": true }],
"react/jsx-no-undef": "error",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/no-unescaped-entities": [ "error", { "forbid": [ ">", "\"", "}" ] } ],
"react/prop-types": "off",
"react/self-closing-comp": [ "error", { "component": true, "html": true } ],
"semi": [ "error", "never" ],
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error"
},
"settings": {
"react": {
"version": "detect"
}
}
}