-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
33 lines (29 loc) · 1 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
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
// enable additional rules
"indent": ["warn", 4],
"quotes": ["warn", "double"],
"semi": ["warn", "never"],
// override configuration set by extending "eslint:recommended"
"no-empty": "warn",
"no-cond-assign": ["warn", "always"],
// disable rules from base configurations
"for-direction": "off",
"no-inline-comments": "off",
"no-unused-vars": "off",
"no-undef": "off",
"brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
"space-before-blocks": ["warn", { "functions": "always", "keywords": "always", "classes": "never" }],
"no-console": "warn",
"space-infix-ops": ["warn", { "int32Hint": false }],
"comma-spacing": ["warn", { "before": false, "after": true }],
},
}