generated from csci312a-s23/project-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
124 lines (124 loc) · 2.51 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{
"extends": ["next/core-web-vitals", "prettier"],
"parserOptions": {
"ecmaVersion": 2020,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"plugins": ["react"],
"env": {
"es6": true,
"jest": true
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"constructor-super": "error",
"no-class-assign": "error",
"no-confusing-arrow": [
"error",
{
"allowParens": true
}
],
"no-dupe-class-members": "error",
"no-this-before-super": "error",
"no-useless-constructor": "error",
"no-var": "error",
"prefer-arrow-callback": [
"warn",
{
"allowNamedFunctions": false,
"allowUnboundThis": true
}
],
"prefer-const": [
"warn",
{
"destructuring": "any",
"ignoreReadBeforeAssign": true
}
],
"prefer-template": "warn",
"prefer-destructuring": [
"warn",
{
"VariableDeclarator": {
"array": false,
"object": true
},
"AssignmentExpression": {
"array": true,
"object": true
}
},
{
"enforceForRenamedProperties": false
}
],
"no-shadow-restricted-names": "error",
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true
}
],
"no-shadow": "error",
"no-use-before-define": [
"error",
{
"functions": true,
"classes": true,
"variables": true
}
],
"curly": ["error", "multi-line"],
"eqeqeq": [
"error",
"always",
{
"null": "ignore"
}
],
"quotes": [
"error",
"double",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"jsx-quotes": ["error", "prefer-double"],
"react/jsx-boolean-value": [
"error",
"never",
{
"always": []
}
],
"react/no-deprecated": ["error"],
"react/prefer-es6-class": ["error", "always"],
"react/prefer-stateless-function": [
"warn",
{
"ignorePureComponents": true
}
],
"react/require-render-return": "error",
"react/self-closing-comp": "error",
"react/no-array-index-key": "error",
"react/no-unused-state": "warn",
"react/no-typos": "error",
"react/jsx-uses-vars": "error",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"react/jsx-key": "error"
}
}