forked from mei23/misskey-v11
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.json
42 lines (42 loc) · 1.39 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
{
"parserOptions": {
"parser": "@typescript-eslint/parser"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:node/recommended"
],
"rules": {
"node/callback-return": "off",
"node/handle-callback-err": "error",
"node/no-callback-literal": "error",
"node/no-missing-import": "off",
"node/no-missing-require": "off",
"node/no-unsupported-features/es-syntax": "off",
"node/no-sync": ["error", { "allowAtRootLevel": true }],
"node/prefer-global/buffer": "error",
"node/prefer-global/console": "error",
"node/prefer-global/process": "error",
"node/prefer-promises/fs": "error",
"node/prefer-promises/dns": "error",
"no-process-exit": "off",
"no-constant-condition": ["warn", { "checkLoops": false }],
"no-empty": ["warn", { "allowEmptyCatch": true }],
"no-irregular-whitespace": ["warn", { "skipComments": true, "skipRegExps": true, "skipTemplates": true }],
"no-useless-escape": "off",
"quotes": ["warn", "single", { "allowTemplateLiterals": true }],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-var-requires": "off"
},
"globals": {
"ENV": true,
"VERSION": true,
"API": true,
"LANGS": true
}
}