-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc.json
35 lines (35 loc) · 937 Bytes
/
.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
{
"extends": "eslint:recommended",
"env": {
"es6": true,
"browser": true
},
"parserOptions": {
"ecmaVersion": 2018
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"root": true,
"rules": {
"dot-notation": "error",
"no-unused-expressions": "error",
"no-caller": "error",
"no-eval": "error",
"no-new-wrappers": "error",
"no-throw-literal": "error",
"no-shadow": ["warn", { "hoist": "all" }],
"strict": ["error", "global"],
"no-constant-condition": ["error", { "checkLoops": false }],
"no-unused-vars": ["warn", { "vars": "local", "args": "none" }],
"no-trailing-spaces": "warn",
"semi": "error",
"indent": ["warn", 2, { "SwitchCase": 1, "ignoredNodes": ["ConditionalExpression"] }],
"no-undef": "off",
"no-var": "error",
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"linebreak-style": ["warn", "windows"],
"quotes": ["error", "double"]
}
}