-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy path.eslintrc
127 lines (127 loc) · 2.97 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"plugins": ["json"],
"extends": ["eslint:recommended", "prettier"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"generators": true,
"experimentalObjectRestSpread": true
}
},
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"rules": {
"array-callback-return": 1,
"camelcase": 2,
"complexity": 1,
"consistent-this": [1, "self"],
"curly": 2,
"dot-notation": 1,
"eqeqeq": 2,
"func-names": [1, "never"],
"func-style": [2, "expression"],
"linebreak-style": 1,
"max-depth": 1,
"max-nested-callbacks": [1, 3],
"max-params": [1, 3],
"max-statements-per-line": [
1,
{
"max": 1
}
],
"new-cap": 2,
"newline-after-var": 1,
"newline-before-return": 1,
"no-alert": 2,
"no-array-constructor": 2,
"no-bitwise": 2,
"no-caller": 2,
"no-catch-shadow": 2,
"no-cond-assign": [2, "except-parens"],
"no-console": 2,
"no-continue": 2,
"no-duplicate-imports": 2,
"no-else-return": 1,
"no-eq-null": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-floating-decimal": 1,
"no-global-assign": 2,
"no-implicit-coercion": 1,
"no-implicit-globals": 2,
"no-implied-eval": 2,
"no-iterator": 2,
"no-labels": 2,
"no-lone-blocks": 1,
"no-lonely-if": 2,
"no-loop-func": 2,
"no-magic-numbers": [
1,
{
"ignoreArrayIndexes": true,
"ignore": [0, 1]
}
],
"no-multi-str": 1,
"no-native-reassign": 2,
"no-negated-condition": 1,
"no-nested-ternary": 2,
"no-new-func": 2,
"no-new-object": 2,
"no-new-wrappers": 2,
"no-octal-escape": 2,
"no-param-reassign": 2,
"no-undef": 2,
"no-proto": 2,
"no-return-assign": 2,
"no-return-await": 1,
"no-script-url": 2,
"no-self-compare": 2,
"no-sequences": 2,
"no-shadow": 2,
"no-shadow-restricted-names": 2,
"no-template-curly-in-string": 1,
"no-throw-literal": 1,
"no-undef-init": 1,
"no-undefined": 1,
"no-underscore-dangle": 1,
"no-unmodified-loop-condition": 2,
"no-unneeded-ternary": 1,
"no-unsafe-negation": 1,
"no-unused-expressions": 2,
"no-unused-vars": 2,
"no-use-before-define": 2,
"no-useless-call": 2,
"no-useless-computed-key": 1,
"no-useless-constructor": 1,
"no-useless-concat": 1,
"no-useless-escape": 1,
"no-useless-rename": 1,
"no-useless-return": 1,
"no-var": 2,
"no-void": 2,
"no-warning-comments": 1,
"no-with": 2,
"object-shorthand": 1,
"one-var": [2, "never"],
"prefer-arrow-callback": 1,
"prefer-const": 1,
"prefer-rest-params": 1,
"prefer-spread": 1,
"prefer-template": 1,
"radix": [1, "as-needed"],
"require-await": 1,
"spaced-comment": [1, "always"],
"strict": [2, "safe"],
"yoda": [1, "never"]
}
}