-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
88 lines (88 loc) · 1.9 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"env": {
"cypress/globals": true,
"es6": true,
"node": true,
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"airbnb",
"plugin:import/errors",
"plugin:import/warnings"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"localStorage": true,
"window": true
},
"overrides": [
{
"files": ["*test.js", "*.spec.js"],
"rules": {
"no-undef": 0
}
}
],
"plugins": [
"eslint-plugin-cypress",
"react-hooks",
"sort-destructure-keys",
"sort-imports-es6-autofix"
],
"rules": {
"strict": 0,
"implicit-arrow-linebreak": "off",
"import/prefer-default-export": "off",
"import/no-unresolved": "off",
"no-console": "off",
"no-use-before-define": "off",
"react/jsx-filename-extension": "off",
"react/prop-types": [
0,
{
"ignore": ["classes", "theme"],
"skipUndeclared": false
}
],
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-first-prop-new-line": [2, "multiline"],
"react/jsx-max-props-per-line": [
2,
{
"maximum": 1
}
],
"sort-destructure-keys/sort-destructure-keys": 2,
"sort-imports-es6-autofix/sort-imports-es6": [2, {
"ignoreCase": false,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
}],
"sort-keys": [
"error",
"asc",
{
"caseSensitive": true,
"natural": false
}
],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"mjs": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"import/no-cycle": "off",
"react/jsx-props-no-spreading": "off"
}
}