forked from misskey-dev/misskey
-
Notifications
You must be signed in to change notification settings - Fork 12
/
.eslintrc.json
43 lines (43 loc) · 1.4 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
{
"parserOptions": {
"parser": "@typescript-eslint/parser"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:n/recommended"
],
"rules": {
"n/callback-return": "off",
"n/handle-callback-err": "error",
"n/no-callback-literal": "error",
"n/no-extraneous-import": "off",
"n/no-missing-import": "off",
"n/no-missing-require": "off",
"n/no-unsupported-features/es-syntax": "off",
"n/no-sync": ["error", { "allowAtRootLevel": true }],
"n/prefer-global/buffer": "error",
"n/prefer-global/console": "error",
"n/prefer-global/process": "error",
"n/prefer-promises/fs": "error",
"n/prefer-promises/dns": "error",
"n/no-process-exit": "off",
"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,
"LANGS": true
}
}