-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
84 lines (82 loc) · 1.93 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"env": {
"browser": true,
"es6": true,
"node": true
},
"settings":{
"import/resolver": {
"babel-module": {}
}
},
"plugins": [
"react",
"json",
"import"
],
"globals": {
"localStorage": true,
"google": true,
"process": true,
"__dirname":true,
"describe":true,
"require":true,
"module":true,
"it":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-redeclare": "error",
"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",
"no-empty-character-class":"error",
"no-extra-boolean-cast": "error",
"no-unsafe-negation": "error",
"use-isnan": "error",
"block-scoped-var": "error",
"valid-typeof": ["error", { "requireStringLiterals": true }],
"no-empty":"off",
"no-undef": "error",
"no-spaced-func": "error",
"no-whitespace-before-property": "error",
"valid-jsdoc": "off",
"constructor-super": "error",
"no-const-assign": "error",
"no-this-before-super": "error",
"no-useless-computed-key": "error",
"no-var": "error",
"max-depth": ["error", 3],
"no-obj-calls": "error",
"max-nested-callbacks": ["error", 3],
"max-params": ["error", 4],
"new-parens": "error",
"no-nested-ternary": "error",
"no-template-curly-in-string": "error",
"import/no-unresolved": "error"
}
}