-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy path.eslintrc.json
34 lines (34 loc) · 907 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
{
"extends": "eslint:recommended",
"env": {
"es6": true,
"browser": true
},
"parserOptions": {
"ecmaVersion": 2021
},
"root": true,
"ignorePatterns": [
"Scripts/lib/**/*.js"
],
"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": "warn",
"indent": ["warn", "tab", { "SwitchCase": 1, "ignoredNodes": ["ConditionalExpression"] }],
"unicode-bom": ["error", "never"],
"no-tabs": ["warn", { "allowIndentationTabs": true }],
// Until globals are properly documented
"no-undef": "off",
"no-var": "off"
}
}