|
8 | 8 | extends:
|
9 | 9 | - eslint:recommended
|
10 | 10 | - plugin:@typescript-eslint/recommended
|
| 11 | + - plugin:@typescript-eslint/recommended-requiring-type-checking |
11 | 12 | - plugin:eslint-comments/recommended
|
12 | 13 | - plugin:import/recommended
|
13 | 14 | - plugin:import/typescript
|
@@ -35,28 +36,38 @@ root: true
|
35 | 36 | rules:
|
36 | 37 | "@typescript-eslint/brace-style":
|
37 | 38 | ["error", "1tbs", { "allowSingleLine": false }]
|
38 |
| - "@typescript-eslint/camelcase": "off" |
39 |
| - "@typescript-eslint/explicit-function-return-type": "off" |
40 | 39 | "@typescript-eslint/method-signature-style": ["error", "property"]
|
41 |
| - "@typescript-eslint/no-floating-promises": error |
42 |
| - "@typescript-eslint/no-invalid-void-type": error |
| 40 | + # TODO: Investigate whether to enable this rule & fix and/or disable all its complaints |
| 41 | + "@typescript-eslint/no-misused-promises": "off" |
| 42 | + # TODO: Investigate whether to enable this rule & fix and/or disable all its complaints |
| 43 | + "@typescript-eslint/no-unsafe-argument": "off" |
| 44 | + # TODO: Investigate whether to enable this rule & fix and/or disable all its complaints |
| 45 | + "@typescript-eslint/no-unsafe-assignment": "off" |
| 46 | + # TODO: Investigate whether to enable this rule & fix and/or disable all its complaints |
| 47 | + "@typescript-eslint/no-unsafe-call": "off" |
| 48 | + # TODO: Investigate whether to enable this rule & fix and/or disable all its complaints |
| 49 | + "@typescript-eslint/no-unsafe-member-access": "off" |
| 50 | + # TODO: Investigate whether to enable this rule & fix and/or disable all its complaints |
| 51 | + "@typescript-eslint/no-unsafe-return": "off" |
| 52 | + # TODO: Investigate whether to enable this rule & fix and/or disable all its complaints |
| 53 | + "@typescript-eslint/require-await": "off" |
| 54 | + # TODO: Investigate whether to enable this rule & fix and/or disable all its complaints |
| 55 | + "@typescript-eslint/restrict-plus-operands": "off" |
| 56 | + # TODO: Investigate whether to enable this rule & fix and/or disable all its complaints |
| 57 | + "@typescript-eslint/restrict-template-expressions": "off" |
| 58 | + # TODO: Investigate whether to enable this rule & fix and/or disable all its complaints |
| 59 | + "@typescript-eslint/unbound-method": "off" |
43 | 60 | # We're disabling the `no-namespace` rule to use a pattern of defining an interface,
|
44 | 61 | # and then defining functions that operate on that data via namespace. This is helpful for
|
45 | 62 | # dealing with immutable objects. This is a common pattern that shows up in some other
|
46 | 63 | # large TypeScript projects, like VSCode.
|
47 | 64 | # More details: https://github.com/coder/m/pull/9720#discussion_r697609528
|
48 | 65 | "@typescript-eslint/no-namespace": "off"
|
49 |
| - "@typescript-eslint/no-unnecessary-boolean-literal-compare": error |
50 |
| - "@typescript-eslint/no-unnecessary-condition": warn |
51 |
| - "@typescript-eslint/no-unnecessary-type-assertion": warn |
52 | 66 | "@typescript-eslint/no-unused-vars":
|
53 | 67 | - error
|
54 | 68 | - argsIgnorePattern: "^_"
|
55 | 69 | varsIgnorePattern: "^_"
|
56 | 70 | ignoreRestSiblings: true
|
57 |
| - "@typescript-eslint/no-use-before-define": "off" |
58 |
| - "@typescript-eslint/object-curly-spacing": ["error", "always"] |
59 |
| - "@typescript-eslint/triple-slash-reference": "off" |
60 | 71 | "brace-style": "off"
|
61 | 72 | "curly": ["error", "all"]
|
62 | 73 | "eslint-comments/require-description": "error"
|
|
0 commit comments