-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
31 lines (31 loc) · 959 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
{
"env": {
"browser": true,
"es2021": true
},
"plugins": ["@stylistic/js", "html"],
"extends": ["eslint:recommended"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"camelcase": ["error", { "properties": "always" }],
"no-constant-binary-expression": "error",
"curly": "error",
"no-undef": "error",
"eqeqeq": "error",
"no-unused-vars": "error",
"strict": "error",
"no-debugger": "error",
"no-var": "error",
"prefer-const": "error",
"@stylistic/js/quotes": ["error", "double"],
"@stylistic/js/semi": ["error", "always"],
"@stylistic/js/no-multi-spaces": "error",
"@stylistic/js/arrow-spacing": ["error", { "before": true, "after": true }],
"@stylistic/js/no-trailing-spaces": "error",
"@stylistic/js/keyword-spacing": ["error", { "before": true, "after": true }],
"@stylistic/js/object-curly-spacing": ["error", "always"]
}
}