-
Notifications
You must be signed in to change notification settings - Fork 306
/
.eslintrc.json
46 lines (46 loc) · 1.06 KB
/
.eslintrc.json
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
{
"parserOptions": {
"ecmaVersion": 2021
},
"extends": [
"eslint:recommended",
"standard",
"plugin:mocha/recommended"
],
"plugins": [
"mocha",
"n"
],
"env": {
"node": true,
"es2021": true
},
"settings": {
"node": {
"version": ">=16.0.0"
}
},
"rules": {
"max-len": [2, 120, 2],
"no-var": 2,
"no-console": 2,
"prefer-const": 2,
"object-curly-spacing": [2, "always"],
"import/no-extraneous-dependencies": 2,
"standard/no-callback-literal": 0,
"no-prototype-builtins": 0,
"mocha/no-mocha-arrows": 0,
"mocha/no-setup-in-describe": 0,
"mocha/no-sibling-hooks": 0,
"mocha/no-top-level-hooks": 0,
"mocha/max-top-level-suites": 0,
"mocha/no-identical-title": 0,
"mocha/no-global-tests": 0,
"mocha/no-exports": 0,
"mocha/no-skipped-tests": 0,
"n/no-restricted-require": [2, ["diagnostics_channel"]],
"n/no-callback-literal": 0,
"object-curly-newline": ["error", {"multiline": true, "consistent": true }],
"import/no-absolute-path": 0
}
}