forked from PengWang0316/KairoScope-Backend-Reading
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
57 lines (57 loc) · 1.71 KB
/
.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
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
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true,
"mocha": true
},
"rules": {
"strict": 0,
"react/destructuring-assignment": 0,
"no-underscore-dangle": 0,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/prop-types": 0,
"arrow-parens": 0,
"no-plusplus": 0,
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false }],
"react/jsx-indent": [2, 2],
"curly": 0,
"import/no-named-as-default": 0,
"array-callback-return": "warn",
"consistent-return": ["warn", { "treatUndefinedAsUnspecified": true }],
"max-len": ["warn", 100, {
"ignoreComments": true,
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}],
"react/forbid-prop-types": [true, { "forbid": ["any"], "checkContextTypes": false, "checkChildContextTypes": false }],
"jsx-a11y/label-has-for": [ 2, {
"components": [ "Label" ],
"required": {
"every": [ "id" ]
},
"allowChildren": false
}],
"jsx-a11y/anchor-is-valid": ["warn"],
"jsx-a11y/click-events-have-key-events": ["warn"],
"linebreak-style": ["error", "unix"],
"valid-jsdoc": ["warn", {
"requireReturn": true,
"requireReturnType": true,
"requireParamDescription": true,
"requireReturnDescription": true
}],
"require-jsdoc": ["warn", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true
}
}]
}
}