|
18 | 18 | "root": true, |
19 | 19 | "rules": { |
20 | 20 | "new-parens": "error", |
21 | | - "no-async-promise-executor": "off", |
22 | | - "no-console": "off", |
23 | 21 | "no-constant-condition": ["warn", { "checkLoops": false }], |
| 22 | + "no-control-regex": "off", |
24 | 23 | "no-caller": "error", |
25 | | - "no-case-declarations": "off", |
26 | 24 | "no-debugger": "warn", |
27 | | - "no-dupe-class-members": "off", |
28 | 25 | "no-duplicate-imports": "error", |
29 | 26 | "no-empty": ["warn", { "allowEmptyCatch": true }], |
30 | 27 | "no-eval": "error", |
|
37 | 34 | "no-implied-eval": "error", |
38 | 35 | "no-inner-declarations": "error", |
39 | 36 | "no-lone-blocks": "error", |
40 | | - "no-lonely-if": "off", |
41 | 37 | "no-loop-func": "error", |
42 | | - "no-multi-spaces": "off", |
43 | | - "no-prototype-builtins": "off", |
44 | 38 | "no-return-assign": "error", |
45 | 39 | "no-self-compare": "error", |
46 | 40 | "no-sequences": "error", |
47 | 41 | "no-template-curly-in-string": "warn", |
48 | 42 | "no-throw-literal": "error", |
49 | 43 | "no-unmodified-loop-condition": "warn", |
50 | 44 | "no-unneeded-ternary": "error", |
51 | | - "no-use-before-define": "off", |
52 | 45 | "no-useless-call": "error", |
53 | 46 | "no-useless-catch": "error", |
54 | 47 | "no-useless-computed-key": "error", |
|
58 | 51 | "no-useless-return": "off", |
59 | 52 | "no-var": "error", |
60 | 53 | "no-with": "error", |
61 | | - "object-shorthand": "off", |
62 | 54 | "one-var": ["error", "never"], |
63 | | - "prefer-const": "off", |
64 | 55 | "prefer-numeric-literals": "error", |
65 | 56 | "prefer-object-spread": "error", |
66 | 57 | "prefer-rest-params": "error", |
67 | 58 | "prefer-spread": "error", |
68 | 59 | "quotes": ["error", "double", { "avoidEscape": true, "allowTemplateLiterals": true }], |
69 | | - "require-atomic-updates": "off", |
70 | 60 | "semi": ["error", "always"], |
71 | 61 | "semi-style": ["error", "last"], |
72 | | - "sort-imports": [ |
73 | | - "error", |
74 | | - { |
75 | | - "ignoreCase": true, |
76 | | - "ignoreDeclarationSort": true, |
77 | | - "ignoreMemberSort": false, |
78 | | - "memberSyntaxSortOrder": ["none", "all", "multiple", "single"] |
79 | | - } |
80 | | - ], |
81 | 62 | "yoda": "error", |
82 | 63 | "@typescript-eslint/await-thenable": "error", |
| 64 | + "@typescript-eslint/ban-ts-comment": "off", |
83 | 65 | "@typescript-eslint/ban-types": [ |
84 | 66 | "error", |
85 | 67 | { |
|
111 | 93 | "message": "`{}` actually means \"any non-nullish value\".\n- If you want a type meaning \"any object\", you probably want `object` or `Record<string, unknown>` instead.\n- If you want a type meaning \"any value\", you probably want `unknown` instead.", |
112 | 94 | "fixWith": "object" |
113 | 95 | } |
114 | | - // "object": { |
115 | | - // "message": "The `object` type is currently hard to use ([see this issue](https://github.com/microsoft/TypeScript/issues/21732)).\nConsider using `Record<string, unknown>` instead, as it allows you to more easily inspect and use the keys." |
116 | | - // } |
117 | 96 | } |
118 | 97 | } |
119 | 98 | ], |
|
124 | 103 | "objectLiteralTypeAssertions": "allow-as-parameter" |
125 | 104 | } |
126 | 105 | ], |
127 | | - "@typescript-eslint/explicit-function-return-type": "off", |
128 | | - "@typescript-eslint/explicit-member-accessibility": "off", |
129 | | - "@typescript-eslint/no-empty-function": "off", |
130 | 106 | "@typescript-eslint/no-empty-interface": "error", |
131 | | - "@typescript-eslint/no-explicit-any": "off", |
132 | 107 | "@typescript-eslint/no-implied-eval": "error", |
133 | 108 | "@typescript-eslint/no-inferrable-types": ["warn", { "ignoreParameters": true, "ignoreProperties": true }], |
134 | 109 | "@typescript-eslint/no-misused-promises": ["error", { "checksConditionals": false, "checksVoidReturn": false }], |
135 | | - "@typescript-eslint/no-namespace": "off", |
136 | | - "@typescript-eslint/no-non-null-assertion": "off", |
137 | | - "@typescript-eslint/no-parameter-properties": "off", |
138 | | - "@typescript-eslint/no-this-alias": "off", |
139 | | - "@typescript-eslint/no-unnecessary-condition": "off", |
140 | 110 | "@typescript-eslint/no-unused-expressions": ["warn", { "allowShortCircuit": true }], |
141 | 111 | "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], |
142 | | - "@typescript-eslint/no-use-before-define": "off", |
143 | | - "@typescript-eslint/prefer-regexp-exec": "off", |
144 | | - "@typescript-eslint/prefer-nullish-coalescing": "off", |
145 | | - "@typescript-eslint/prefer-optional-chain": "off", |
146 | | - "@typescript-eslint/require-await": "off", |
147 | 112 | "@typescript-eslint/restrict-plus-operands": "error", |
148 | | - "@typescript-eslint/restrict-template-expressions": "off", |
149 | | - "@typescript-eslint/strict-boolean-expressions": "off", |
| 113 | + "@typescript-eslint/triple-slash-reference": "off", |
150 | 114 | "@typescript-eslint/unbound-method": "off" // Too many bugs right now: https://github.com/typescript-eslint/typescript-eslint/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+unbound-method |
151 | 115 | } |
152 | 116 | } |
0 commit comments