-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.json
executable file
·74 lines (74 loc) · 2.55 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"plugins": ["@typescript-eslint", "unused-imports"],
"extends": [
"./node_modules/gts/",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parserOptions": {
"tsconfigRootDir": "./",
"project": ["./tsconfig.json"],
"createDefaultProgram": true
},
"rules": {
"quotes": ["warn", "single", { "avoidEscape": true }],
"prefer-arrow-callback": "error",
"object-property-newline": "warn",
"curly": "error",
"eqeqeq": "warn",
"no-async-promise-executor": "warn",
"no-case-declarations": "warn",
"no-prototype-builtins": "warn",
"no-useless-escape": "warn",
"prefer-const": "warn",
"prefer-spread": "warn",
"prettier/prettier": "warn",
"node/no-extraneous-import": "off",
"@typescript-eslint/adjacent-overload-signatures": "warn",
"@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/explicit-module-boundary-types": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-floating-promises": "warn",
"@typescript-eslint/no-for-in-array": "warn",
"@typescript-eslint/no-implied-eval": ["warn"],
"@typescript-eslint/no-misused-promises": "warn",
"@typescript-eslint/no-unused-expressions": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-unsafe-assignment": ["off"],
"@typescript-eslint/no-unsafe-call": ["off"],
"@typescript-eslint/no-unsafe-member-access": ["warn"],
"@typescript-eslint/no-unsafe-return": ["warn"],
"@typescript-eslint/no-this-alias": "warn",
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
"@typescript-eslint/prefer-optional-chain": "warn",
"@typescript-eslint/prefer-regexp-exec": "warn",
"@typescript-eslint/require-await": "warn",
"@typescript-eslint/restrict-plus-operands": "warn",
"@typescript-eslint/restrict-template-expressions": "warn",
"@typescript-eslint/unbound-method": "warn",
"no-debugger": "warn",
"@typescript-eslint/no-inferrable-types": "off",
"node/no-unpublished-import": "off",
"@typescript-eslint/consistent-type-imports": "warn",
"@typescript-eslint/prefer-readonly": [
"error",
{ "onlyInlineLambdas": true }
],
"@typescript-eslint/explicit-member-accessibility": [
"warn",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/explicit-function-return-type": [
"warn",
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true,
"allowHigherOrderFunctions": true,
"allowConciseArrowFunctionExpressionsStartingWithVoid": true
}
],
"unused-imports/no-unused-imports": "warn"
}
}