-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
93 lines (91 loc) · 2.07 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
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
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"legacyDecorators": true,
"jsx": true
}
},
"env": {
"es6": true
},
"settings": {
"react": {
"version": "16.12.0"
}
},
"rules": {
"indent": [
"error",
2,
{
"MemberExpression": "off",
"SwitchCase": 1
}
],
"no-undef": 0,
"arrow-parens": [2, "always"],
"max-len": [2, { "code": 120 }],
"radix": 0,
"quotes": [ 1, "single", { "allowTemplateLiterals": true, "avoidEscape": true } ],
"no-underscore-dangle": 0,
"no-extra-boolean-cast": 0,
"comma-dangle": ["error", "always-multiline"],
"space-before-function-paren": 2,
"brace-style": [ 2, "1tbs", { "allowSingleLine": true }],
"linebreak-style": 0,
"strict": [ 1, "never" ],
"no-unused-vars": [ 1, { "args": "after-used" } ],
"no-cond-assign": 0,
"no-console": 0,
"semi": [2, "always"],
"one-var": [2, "never"],
"no-multiple-empty-lines": ["error", {
"max": 1,
"maxEOF": 1,
"maxBOF": 0
}],
"no-restricted-syntax": [
"error",
"LabeledStatement",
"WithStatement"
],
"arrow-body-style": 0,
"class-methods-use-this": 0,
"global-require": 0,
"no-param-reassign": 0,
"func-names": 0,
"new-cap": "error",
"new-parens": 0,
"no-nested-ternary": 0,
"guard-for-in": 0,
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-useless-escape": 0,
"no-use-before-define": [2, {
"functions": false,
"classes": false
}],
"no-bitwise": 0,
"no-continue": 0,
"newline-before-return": ["error"],
"eol-last": [2, "always"],
"object-shorthand": [2, "always"],
"react/prop-types": 0,
"react/no-unsafe": [2, { "checkAliases": true}],
},
"globals": {
"document": false,
"moment": false,
"window": false
},
"plugins": [
"react",
"jsx-a11y"
]
}