|
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,29 +36,18 @@ 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 |
| - "@typescript-eslint/explicit-module-boundary-types": "error" |
41 | 39 | "@typescript-eslint/method-signature-style": ["error", "property"]
|
42 |
| - "@typescript-eslint/no-floating-promises": error |
43 |
| - "@typescript-eslint/no-invalid-void-type": error |
44 | 40 | # We're disabling the `no-namespace` rule to use a pattern of defining an interface,
|
45 | 41 | # and then defining functions that operate on that data via namespace. This is helpful for
|
46 | 42 | # dealing with immutable objects. This is a common pattern that shows up in some other
|
47 | 43 | # large TypeScript projects, like VSCode.
|
48 | 44 | # More details: https://github.com/coder/m/pull/9720#discussion_r697609528
|
49 | 45 | "@typescript-eslint/no-namespace": "off"
|
50 |
| - "@typescript-eslint/no-unnecessary-boolean-literal-compare": error |
51 |
| - "@typescript-eslint/no-unnecessary-condition": warn |
52 |
| - "@typescript-eslint/no-unnecessary-type-assertion": warn |
53 | 46 | "@typescript-eslint/no-unused-vars":
|
54 | 47 | - error
|
55 | 48 | - argsIgnorePattern: "^_"
|
56 | 49 | varsIgnorePattern: "^_"
|
57 | 50 | ignoreRestSiblings: true
|
58 |
| - "@typescript-eslint/no-use-before-define": "off" |
59 |
| - "@typescript-eslint/object-curly-spacing": ["error", "always"] |
60 |
| - "@typescript-eslint/triple-slash-reference": "off" |
61 | 51 | "brace-style": "off"
|
62 | 52 | "curly": ["error", "all"]
|
63 | 53 | "eslint-comments/require-description": "error"
|
|
0 commit comments