-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc
24 lines (24 loc) · 903 Bytes
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"extends": [
"react-app",
"plugin:jsx-a11y/recommended"
],
"globals": {
"vi": true
},
"rules": {
"comma-dangle": 0,
"max-len": ["error", { "code": 120, "ignoreUrls": true , "ignoreTrailingComments": true, "ignoreRegExpLiterals": true }],
"quotes": ["error", "single"],
"no-console": 0,
"no-param-reassign": ["error", {"props": false}],
"no-unused-vars": [ "error", { "args": "none" } ],
"no-use-before-define": ["error", "nofunc"],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"prefer-destructuring": ["error", { "AssignmentExpression": { "array": false, "object": false } }],
"import/no-named-default": "off",
"jsx-a11y/href-no-hash": 0,
"jsx-a11y/label-has-for": ["error", { "required": { "some": ["nesting", "id"] } }],
"object-curly-newline": ["error", { "minProperties": 8, "consistent": true }]
}
}