-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy patheslint.config.js
70 lines (69 loc) · 1.78 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
66
67
68
69
70
const js = require('@eslint/js')
module.exports = [
js.configs.recommended,
{
ignores: [],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
Set: true,
console: true
}
},
rules: {
"global-require": 0,
"no-sequences": 0,
"semi": [2, "never"],
"strict": [2, "never"],
"one-var": [2, {
"let": "always",
"const": "never"
}],
"space-in-parens": [2, "never" ],
"indent": [2, 2, {
"flatTernaryExpressions": true,
"VariableDeclarator": {
"let": 2,
"const": 3
}
}],
"camelcase": [2, {"properties": "never"}],
"func-names": [2, "never"],
"newline-per-chained-call": 0,
"max-len": [2, 80],
"comma-dangle": [2, "never"],
"prefer-template": 0,
"no-use-before-define": 0,
"no-mixed-operators": 0,
"no-plusplus": 0,
"no-console": 0,
"object-curly-newline": 0,
"nonblock-statement-body-position": 0,
"arrow-parens": [2, "as-needed"],
"space-before-function-paren": [2, "always"],
"function-paren-newline": 0,
"consistent-return": 0,
"array-callback-return": 0,
"prefer-const": 0,
"curly": 0,
"operator-linebreak": 0,
"no-param-reassign": 0,
"key-spacing": [2, {"beforeColon": true}],
"implicit-arrow-linebreak": 0,
"no-shadow": [0, "warn", {
"allow": [ "err" ]
}
],
"prefer-arrow-callback": [2, {
"allowNamedFunctions": true
}],
"no-return-assign": 0,
"no-nested-ternary": 0,
"array-bracket-spacing": [2, "always"],
"prefer-destructuring": 2,
"class-methods-use-this": 0,
"no-confusing-arrow": 0
}
}
]