-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
66 lines (66 loc) · 1.65 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
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"plugins": ["react", "react-hooks", "prettier", "import", "better-styled-components"],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"rules": {
"quotes": [2, "single"],
"prefer-const": 2,
"no-const-assign": 2,
"no-var": 2,
"no-array-constructor": 1,
"no-new-object": 1,
"object-shorthand": 1,
"quote-props": [1, "as-needed"],
"no-loop-func": 2,
"no-param-reassign": 2,
"prefer-arrow-callback": 0,
"arrow-spacing": 1,
"space-before-blocks": 1,
"keyword-spacing": 1,
"comma-dangle": [1, "always-multiline"],
"camelcase": 0,
"no-dupe-keys": 1,
"no-unused-vars": [1, { "vars": "local", "args": "none" }],
"no-use-before-define": [1, "nofunc"],
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/react-in-jsx-scope": 1,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"prettier/prettier": "error",
"better-styled-components/sort-declarations-alphabetically": 2,
"import/extensions": [
"error",
"always",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"import/order": [
"error",
{
"groups": [["builtin", "external", "internal", "unknown"], "parent", ["sibling", "index"]],
"newlines-between": "never"
}
],
"react/jsx-sort-props": [
"error",
{
"callbacksLast": true,
"reservedFirst": true,
"shorthandFirst": true
}
]
}
}