-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
69 lines (67 loc) · 2.12 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
{
"root": true,
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"files": ["*.ts", "*.tsx"], // Your TypeScript files extension
"project": ["tsconfig.json"],
"projectFolderIgnoreList": ["/node_modules/", "/dist/", "/scripts/"]
},
"rules": {
// Enabled: typescript
"no-param-reassign": ["error"],
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/dot-notation": "error",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
// Enabled: eslint
"default-case": "error",
"no-return-await": "error",
"eqeqeq": ["error", "smart"],
"id-denylist": ["error", "any", "Undefined", "undefined"],
"id-match": "error",
"no-caller": "error",
"no-cond-assign": "error",
"no-invalid-this": "error",
"no-debugger": "error",
"no-eval": "error",
"no-new-wrappers": "error",
"no-redeclare": "error",
"prefer-const": "error",
"prefer-object-spread": "error",
"radix": "error",
"sort-imports": [
"error",
{
"ignoreCase": true,
"ignoreDeclarationSort": true
}
],
// Disabled: eslint
"guard-for-in": "off",
"no-empty": "off",
"no-magic-numbers": "off",
"no-null/no-null": "off",
"no-shadow": "off",
"no-trailing-spaces": "off",
"no-underscore-dangle": "off",
"no-var": "off",
"no-unused-vars": "off",
"no-case-declarations": "off",
"no-constant-condition": "off",
"no-dupe-class-members": "off"
}
}