-
Notifications
You must be signed in to change notification settings - Fork 219
/
eslint.config.mjs
57 lines (56 loc) · 1.66 KB
/
eslint.config.mjs
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
import globals from "globals";
import js from "@eslint/js";
export default [
js.configs.recommended,
{
languageOptions: {
globals: {
...globals.browser,
sap: "readonly"
},
ecmaVersion: 2023,
sourceType: "script"
},
rules: {
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"consistent-this": 2,
"no-div-regex": 2,
"no-floating-decimal": 2,
"no-self-compare": 2,
"no-mixed-spaces-and-tabs": [2, true],
"no-nested-ternary": 2,
"radix": 2,
"keyword-spacing": 2,
"space-unary-ops": 2,
"wrap-iife": [2, "any"],
"camelcase": 1,
"consistent-return": 1,
"max-nested-callbacks": [1, 3],
"new-cap": 1,
"no-extra-boolean-cast": 1,
"no-lonely-if": 1,
"no-new": 1,
"no-new-wrappers": 1,
"no-redeclare": 1,
"no-unused-expressions": 1,
"no-use-before-define": [1, "nofunc"],
"no-warning-comments": 1,
"strict": 1,
"default-case": 1,
"dot-notation": 0,
"eol-last": 0,
"eqeqeq": 0,
"no-trailing-spaces": 0,
"no-underscore-dangle": 0,
"quotes": 0,
"key-spacing": 0,
"comma-spacing": 0,
"no-multi-spaces": 0,
"no-shadow": 0,
"no-irregular-whitespace": 0,
"no-var": 2,
"no-const-assign": 2,
"prefer-const": 2
}
}
]