-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
37 lines (37 loc) · 1.1 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
{
"extends": [
"eslint:recommended",
"plugin:node/recommended",
"prettier",
"plugin:mocha/recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2023
},
"env": {
"node": true,
"mocha": true
},
"rules": {
"no-await-in-loop": "error",
"no-useless-escape": "error",
"no-constant-condition": ["error", { "checkLoops": false }],
"no-alert": "error",
"eqeqeq": ["error", "always", { "null": "ignore" }],
"default-case": "error",
"array-callback-return": "error",
"require-atomic-updates": "error",
"no-var": "error",
"prefer-const": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"node/no-missing-import": "off",
"node/no-unpublished-import": "off",
"mocha/no-skipped-tests": "error",
"mocha/no-exclusive-tests": "error"
}
}