-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
51 lines (51 loc) · 1.69 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
47
48
49
50
51
{
"env": {
"es2020": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"ignorePatterns": ["dist/*", "types/gamerbot.d.ts", "scripts/*", "data/*", "test/*"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint", "import"],
"rules": {
"no-void": "off",
"comma-dangle": "off",
"@typescript-eslint/no-invalid-void-type": "off",
"@typescript-eslint/space-before-function-paren": [
"error",
{ "anonymous": "always", "named": "never", "asyncArrow": "always" }
],
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-misused-promises": "off",
// "consistent-return": "error",
"curly": ["error", "multi-line", "consistent"],
"require-atomic-updates": "error",
"no-console": "error",
"no-constant-condition": "off",
"no-else-return": "error",
"no-eval": "error",
"no-lonely-if": "error",
"no-nested-ternary": "error",
// "no-promise-executor-return": "error",
"prefer-template": "error",
"import/extensions": ["error", "always"],
"import/no-unresolved": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/no-non-null-assertion": "off"
}
}