-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.js
80 lines (79 loc) · 2.07 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
71
72
73
74
75
76
77
78
79
80
import js from '@eslint/js'
import markdown from 'eslint-plugin-markdown'
export default [
js.configs.recommended,
...markdown.configs.recommended,
{
ignores: [],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
module: true,
require: true,
util: true,
process: true,
global: true,
console: true,
URL: true,
queueMicrotask: true,
setTimeout: true,
__dirname: true,
Promise: true
}
},
rules: {
"no-trailing-spaces": ["error"],
"global-require": 0,
"no-sequences": 0,
"no-unused-vars": "error",
"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": 0,
"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": false}],
"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": [0, "always"],
"prefer-destructuring": 0,
"class-methods-use-this": 0,
"no-confusing-arrow": 0
}
}
]