-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eslintrc.json
109 lines (109 loc) · 2.66 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2016,
"ecmaFeatures": {
"impliedStrict": true
}
},
"globals": {
"global": true
},
"rules": {
"array-bracket-spacing": [ "error", "always", {
"singleValue": true,
"objectsInArrays": false
}],
"brace-style": [ "error", "1tbs", {
"allowSingleLine": false
}],
"camelcase": "off",
"comma-dangle": [ "error", {
"arrays": "never",
"objects": "never",
"imports": "never",
"exports": "never",
"functions": "never"
}],
"comma-spacing": [ "error", {
"before": false,
"after": true
}],
"comma-style": [ "error", "last" ],
"complexity": "off",
"consistent-return": "off",
"consistent-this": "off",
"eol-last": [ "error", "always" ],
"eqeqeq": [ "error", "always" ],
"func-names": [ "error", "never" ],
"func-style": [ "error", "expression" ],
"indent": [ "error", "tab", {
"SwitchCase": 1
}],
"keyword-spacing": [ "error", {
"before": true,
"after": true
}],
"linebreak-style": [ "error", "unix" ],
"lines-around-comment": [ "error", {
"beforeBlockComment": true,
"afterBlockComment": true,
"beforeLineComment": false,
"afterLineComment": false
}],
"multiline-ternary": [ "error", "never" ],
"newline-before-return": "off",
"newline-after-var": "off",
"newline-per-chained-call": "off",
"no-console": [ "error", {
"allow": [ "clear", "log", "info", "warn", "error", "deserialize", "serialize" ]
}],
"no-control-regex": "off",
"no-dupe-args": [ "error" ],
"no-dupe-keys": [ "error" ],
"no-empty": [ "error", {
"allowEmptyCatch": true
}],
"no-extra-semi": [ "error" ],
"no-floating-decimal": [ "error" ],
"no-global-assign": [ "error", {
"exceptions": [
"Audio",
"Image",
"console"
]
}],
"no-mixed-spaces-and-tabs": [ "error", "smart-tabs" ],
"no-negated-in-lhs": [ "error" ],
"no-octal": "off",
"no-return-assign": [ "error" ],
"no-return-await": [ "error" ],
"no-sequences": [ "error" ],
"no-shadow": "off",
"no-shadow-restricted-names": [ "error" ],
"no-trailing-spaces": [ "error" ],
"no-undef": [ "error", {
"typeof": false
}],
"no-undef-init": "off",
"no-undefined": "off",
"no-unreachable": [ "error" ],
"no-unused-vars": [ "error", {
"args": "none",
"varsIgnorePattern": "^_[A-Za-z]+"
}],
"no-var": [ "error" ],
"object-curly-spacing": [ "error", "always" ],
"semi": [ "error", "always" ],
"semi-spacing": [ "error" ],
"space-before-blocks": [ "error", "always" ],
"space-in-parens": [ "error", "never" ],
"space-infix-ops": [ "error" ],
"space-unary-ops": [ "error" ]
}
}