-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
51 lines (51 loc) · 1.26 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
{
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6
},
"env": {
"es6": true,
"browser": true,
"commonjs": true,
"jest": true
},
"plugins": [
"jest"
],
"extends": [
"eslint:recommended",
"plugin:jest/recommended"
],
"rules": {
"curly": "error",
"eqeqeq": "error",
"no-alert": "error",
"no-console": "warn",
"no-array-constructor": "error",
"no-cond-assign": ["error", "always"],
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-implicit-coercion": ["error", { "boolean": false }],
"no-implied-eval": "error",
"no-lone-blocks": "error",
"no-native-reassign": "error",
"no-negated-condition": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-wrappers": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "error",
"no-useless-call": "error",
"no-useless-concat": "error",
"one-var": ["error", "never"],
"prefer-arrow-callback": ["error", { "allowNamedFunctions": true }],
"radix": "error",
"yoda": "error"
}
}