-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
71 lines (71 loc) · 2.13 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
{
"env":{
"browser": true,
"jquery": true,
"node": true,
"serviceworker": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
},
"globals":{
"Promise": true
},
"extends": [
"airbnb"
],
"plugins": [
"import",
"html"
],
"rules": {
"array-callback-return": ["error", { "allowImplicit": true }],
"camelcase": "warn",
"class-methods-use-this": "warn",
"func-names": ["warn", "as-needed"],
"global-require": "warn",
"guard-for-in": "warn",
"import/first": "warn",
"import/newline-after-import": 0,
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "optionalDependencies": true}],
"indent": ["warn", 4],
"key-spacing": "warn",
"max-len": ["warn", 240],
"newline-per-chained-call": 0,
"no-console": "warn",
"no-multiple-empty-lines": "warn",
"no-new-symbol": "warn",
"no-new": 0,
"no-param-reassign": 0,
"no-prototype-builtins": "warn",
"no-plusplus": ["error", {"allowForLoopAfterthoughts": true }],
"no-restricted-syntax": "warn",
"no-trailing-spaces": "warn",
"no-unused-vars": "warn",
"no-useless-escape": "warn",
"no-use-before-define": "warn",
"no-var": "warn",
"object-curly-spacing": "warn",
"object-shorthand": "warn",
"one-var": "warn",
"padded-blocks": ["warn", { "blocks": "always" }],
"prefer-arrow-callback": 0,
"prefer-const": "warn",
"prefer-template": "warn",
"quotes": ["warn", "single"],
"quote-props": ["warn"],
"spaced-comment": "warn",
"space-before-function-paren": ["warn", "never"],
"space-in-parens": "warn",
"vars-on-top": "warn",
"comma-dangle": ["warn", {
"arrays": "never",
"objects": "never",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}]
}
}