-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.json
66 lines (66 loc) · 1.76 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
{
"root": true,
"env": {
"browser": true,
"es6": true,
"jest": true
},
"overrides": [
{
"files": ["*.js", "*.jsx"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"babelOptions": {
"babelrc": false,
"configFile": false,
"presets": ["@babel/preset-env", "@babel/preset-react"]
},
"ecmaFeatures": {
"jsx": true,
"strict": true
}
},
"extends": ["prettier", "standard", "eslint:recommended", "plugin:react/recommended"],
"plugins": ["react", "react-hooks", "import"],
"rules": {
"no-debugger": "error",
"import/no-cycle": "warn",
"react/react-in-jsx-scope": "error",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/prop-types": "off",
"no-undef": "off",
"no-new-func": "warn",
"complexity": ["error", 10],
"semi": [ "error", "always"],
"camelcase": "warn",
"space-before-function-paren": "off",
"import/order": [
"warn",
{
"groups": ["builtin", "external", "parent", "sibling", "index"],
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": [],
"warnOnUnassignedImports": true
}
]
}
}
],
"globals": {
"JSX": "readonly"
}
}