-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
65 lines (64 loc) · 1.48 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"env": {
"browser": true,
"es6": true
},
"plugins": [
"json"
],
"globals": {
"localStorage": true,
"google": true,
"process": true,
"__dirname":true,
"describe":true,
"require":true,
"module":true,
"it":true,
"jQuery":true
},
"rules": {
"quote-props": ["off", "as-needed"],
"no-unused-vars": ["off"],
"no-mixed-spaces-and-tabs": "warn",
"jsx-quotes": ["warn", "prefer-double"],
"quotes": ["warn", "single"],
"comma-dangle": ["warn", "only-multiline"],
"no-unneeded-ternary": "off",
"semi": ["warn", "never"],
"no-underscore-dangle": "warn",
"no-cond-assign": "error",
"no-constant-condition" :"error",
"no-control-regex" : "error",
"no-dupe-args" : "error",
"no-dupe-keys" : "error",
"no-duplicate-case" : "error",
"no-extra-semi" : "error",
"no-func-assign" : "error",
"no-invalid-regexp" : "error",
"no-regex-spaces" : "error",
"no-sparse-arrays" : "error",
"no-unreachable" : "error",
"valid-typeof" : "error",
"no-undef": "error",
"no-spaced-func": "error",
"no-whitespace-before-property": "error",
"constructor-super": "error",
"no-const-assign": "error",
"no-this-before-super": "error",
"no-useless-computed-key": "error",
"no-var": "error",
"max-depth": ["error", 3],
"max-nested-callbacks": ["error", 3],
"max-params": ["error", 4],
"new-parens": "error",
"no-nested-ternary": "error"
}
}