-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
99 lines (98 loc) · 3.38 KB
/
.eslintrc.js
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
/*eslint-env node*/
/*eslint no-console:0*/
'use strict';
module.exports = {
"extends": "eslint:recommended",
"rules": {
"comma-dangle": [ "warn", "always", ],
"valid-jsdoc": [ "warn", { "requireReturn": false, }, ],
"accessor-pairs": "warn",
"array-callback-return": "warn",
"block-scoped-var": "warn",
"complexity": [ "warn", { "max": 25, }, ],
"consistent-return": "warn",
"curly": "warn",
"default-case": "warn",
"dot-location": [ "warn", "property", ],
"dot-notation": "warn",
"eqeqeq": [ "warn", "allow-null", ],
"guard-for-in": "warn",
"no-alert": "warn",
"no-caller": "error",
"no-div-regex": "warn",
"no-else-return": "warn",
"no-empty-function": "warn",
"no-eval": "error",
"no-extend-native": "warn",
"no-extra-bind": "warn",
"no-extra-label": "warn",
"no-floating-decimal": "warn",
"no-implicit-coercion": "warn",
"no-implicit-globals": "warn",
"no-implied-eval": "error",
"no-iterator": "error",
"no-labels": "warn",
"no-lone-blocks": "warn",
"no-loop-func": "error",
"no-magic-numbers": [ "warn", { "ignore": [ -1, 0, 1, ], }, ],
"no-multi-str": "warn",
"no-native-reassign": "error",
"no-new": "warn",
"no-new-func": "error",
"no-new-wrappers": "warn",
"no-octal-escape": "error",
"no-proto": "warn",
"no-return-assign": "error",
"no-script-url": "warn",
"no-self-compare": "error",
"no-sequences": "warn",
"no-throw-literal": "warn",
"no-unmodified-loop-condition": "warn",
"no-unused-expressions": "error",
"no-unsafe-finally": "error",
"no-useless-call": "warn",
"no-useless-computed-key": "warn",
"no-useless-concat": "warn",
"no-warning-comments": [ "warn", { "terms": [ "todo", "bug", ], "location": "start", }, ],
"no-with": "error",
"radix": "warn",
"yoda": "warn",
"strict": [ "warn", "safe", ],
"no-catch-shadow": "error",
"no-restricted-globals": [ "warn", "event", ],
"no-shadow": "warn",
"no-shadow-restricted-names": "error",
"no-undef": "error",
"no-use-before-define": "error",
"arrow-body-style": "warn",
"arrow-parens": "warn",
"arrow-spacing": "warn",
"generator-star-spacing": "warn",
"no-confusing-arrow": [ "warn", { "allowParens": true, }, ],
"no-useless-constructor": "warn",
"no-var": "warn",
"object-shorthand": "warn",
"prefer-arrow-callback": "warn",
"prefer-const": "warn",
"prefer-rest-params": "warn",
"prefer-spread": "warn",
"prefer-template": "warn",
"require-yield": "warn",
"template-curly-spacing": "warn",
"yield-star-spacing": "warn",
"no-duplicate-imports": "warn",
"max-statements-per-line": ["warn", { "max": 2, }, ],
"no-useless-escape": "warn",
},
"env": {
"browser": true,
"es6": true,
},
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {/*
"jsx": true,
*/},
},
"root": true,
};