-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.eslintrc.json
104 lines (103 loc) · 2.17 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"extends": ["plugin:react/recommended", "airbnb", "prettier"],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest"
},
"root": true,
"rules": {
"indent": "off",
"quotes": "off",
"semi": "off",
"import/prefer-default-export": "off",
"no-unsafe-optional-chaining": "off",
"import/no-unresolved": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-no-useless-fragment": "off",
"no-shadow": "off",
"no-console": "off",
"react/prop-types": "off",
"prettier/prettier": "off",
"react/function-component-definition": [
"warn",
{ "namedComponents": "function-declaration" }
],
"no-plusplus": ["warn", { "allowForLoopAfterthoughts": true }],
"no-use-before-define": [
"warn",
{
"functions": false,
"variables": false,
"classes": false,
"allowNamedExports": true
}
],
"global-require": "error",
"no-underscore-dangle": [
"error",
{
"allowAfterThis": true,
"allowAfterSuper": true,
"allowAfterThisConstructor": true,
"allowInObjectDestructuring": false
}
],
"import/order": [
"error",
{
"pathGroups": [
{
"pattern": "react",
"group": "builtin",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["react"]
}
],
"react/button-has-type": [
"error",
{
"button": true,
"submit": true,
"reset": true
}
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": false,
"optionalDependencies": false,
"peerDependencies": false
}
],
"no-else-return": ["error", { "allowElseIf": false }],
"react/require-default-props": [
"error",
{
"forbidDefaultForRequired": true,
"classes": "defaultProps",
"functions": "defaultProps",
"ignoreFunctionalComponents": true
}
],
"react/forbid-prop-types": [
"error",
{
"forbid": ["any", "array", "object"],
"checkContextTypes": true,
"checkChildContextTypes": true
}
],
"no-undef": "error",
"arrow-body-style": "warn",
"no-mixed-spaces-and-tabs": "error"
}
}