-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
38 lines (38 loc) · 1.87 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
export default [
{
languageOptions : {
ecmaVersion : 13,
sourceType : "module",
},
rules : {
"indent" : [ "error", "tab", { SwitchCase: 1, MemberExpression: "off", CallExpression: { arguments: "off" } } ],
"linebreak-style" : [ "error", "unix" ],
"quotes" : [ "error", "double", { allowTemplateLiterals: true } ],
"semi" : [ "error", "always" ],
"no-mixed-spaces-and-tabs" : [ "error", "smart-tabs" ],
"nonblock-statement-body-position" : [ "error", "beside" ],
"keyword-spacing" : [ "error", { "before": true, "after": true } ],
"no-unused-vars" : [ "error", { "caughtErrors": "none" } ],
"no-cond-assign" : [ "error" ],
"no-useless-escape" : [ "off" ],
"no-console" : [ "off" ],
"no-control-regex" : [ "off" ],
"no-empty" : [ "error", { allowEmptyCatch: true } ],
"no-prototype-builtins" : [ "off" ],
"no-unmodified-loop-condition" : [ "error" ],
"no-unreachable-loop" : [ "error" ],
"require-atomic-updates" : [ "off" ],
"no-unsafe-optional-chaining" : [ "error" ],
"no-delete-var" : [ "off" ],
"prefer-const" : [ "error", { destructuring: "all" } ],
"no-var" : [ "error" ],
"arrow-spacing" : [ "error" ],
"comma-style" : [ "error", "last" ],
"comma-spacing" : [ "error" ],
"no-unneeded-ternary" : [ "error" ],
"space-before-blocks" : [ "error", "always" ],
"no-multiple-empty-lines" : [ "error", { max: 1, maxEOF: 0 } ],
"no-async-promise-executor" : [ "off" ],
}
}
];