-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
87 lines (82 loc) · 1.93 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
{
"env": {
"browser": true,
"es6": true,
"node": true,
"cypress/globals": true
},
"extends": [
"eslint:recommended",
"plugin:mdx/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"prettier"
],
"parserOptions": {
"parser": "babel-eslint",
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module",
"allowImportExportEverywhere": true
},
"plugins": ["react", "cypress"],
"rules": {
"complexity": ["error", 10],
"dot-notation": "error",
"no-console": "error",
"no-shadow": "error",
"prefer-destructuring": "error",
"prefer-template": "error",
"prefer-object-spread": "error",
"react/boolean-prop-naming": "error",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/jsx-no-target-blank": "error",
"react/jsx-boolean-value": "error",
"react/jsx-no-literals": "off",
"react/forbid-component-props": "off",
"react/jsx-max-depth": "off",
"react/no-unescaped-entities": "off",
"no-restricted-imports": [
"error",
{
"patterns": ["@material-ui/*/*/*", "!@material-ui/core/test-utils/*"]
}
],
"cypress/no-assigning-return-values": "error",
"cypress/no-unnecessary-waiting": "error",
"cypress/assertion-before-screenshot": "warn",
"cypress/no-force": "warn",
"cypress/no-async-tests": "error"
},
"overrides": [
{
"files": ["config/**", "scripts/**"],
"rules": {
"no-console": "off"
}
},
{
"files": ["*.json"],
"rules": {
"mdx/no-unused-expressions": "off"
}
}
],
"settings": {
"react": { "version": "detect", "pragma": "React" },
"linkComponents": [
"Hyperlink",
{
"name": "Link",
"linkAttribute": "to"
},
{
"name": "ExternalLink",
"linkAttribute": "href"
}
]
}
}