-
Notifications
You must be signed in to change notification settings - Fork 245
/
eslint.config.js
65 lines (62 loc) · 1.43 KB
/
eslint.config.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
"use strict";
module.exports = [
{
ignores: [
"dist/"
]
},
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "commonjs"
},
rules: {
"brace-style": [2, "1tbs", { "allowSingleLine": false }],
quotes: [
2,
"double",
{
avoidEscape: true,
allowTemplateLiterals: true
}
],
"comma-dangle": [2, "only-multiline"],
"curly": [2, "multi-line"],
"eol-last": 2,
"eqeqeq": 2,
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
"keyword-spacing": 2,
"new-cap": 0,
"no-native-reassign": 2,
"no-extra-semi": 2,
"no-multiple-empty-lines": [2, { "max": 1 }],
// "no-param-reassign": [2, { "props": false }],
"no-trailing-spaces": 2,
"no-underscore-dangle": 0,
"no-unused-vars": [
2,
{
vars: "all",
args: "none",
caughtErrors: "all",
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_"
}
],
"object-curly-spacing": [2, "always"],
"padded-blocks": [2, "never"],
"semi": [2, "always"],
"space-before-blocks": [2, "always"],
"no-var": 2,
"prefer-const": [
2,
{
destructuring: "any",
ignoreReadBeforeAssign: true
}
],
"prefer-promise-reject-errors": 2,
"prefer-template": 2
}
}
];