Skip to content

Commit c1bf93a

Browse files
chore(site): align ESLint config to typescript-eslint's recommended-requiring-type-checking
1 parent 08cce81 commit c1bf93a

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

site/.eslintrc.yaml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ env:
88
extends:
99
- eslint:recommended
1010
- plugin:@typescript-eslint/recommended
11+
- plugin:@typescript-eslint/recommended-requiring-type-checking
1112
- plugin:eslint-comments/recommended
1213
- plugin:import/recommended
1314
- plugin:import/typescript
@@ -35,29 +36,18 @@ root: true
3536
rules:
3637
"@typescript-eslint/brace-style":
3738
["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"
4139
"@typescript-eslint/method-signature-style": ["error", "property"]
42-
"@typescript-eslint/no-floating-promises": error
43-
"@typescript-eslint/no-invalid-void-type": error
4440
# We're disabling the `no-namespace` rule to use a pattern of defining an interface,
4541
# and then defining functions that operate on that data via namespace. This is helpful for
4642
# dealing with immutable objects. This is a common pattern that shows up in some other
4743
# large TypeScript projects, like VSCode.
4844
# More details: https://github.com/coder/m/pull/9720#discussion_r697609528
4945
"@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
5346
"@typescript-eslint/no-unused-vars":
5447
- error
5548
- argsIgnorePattern: "^_"
5649
varsIgnorePattern: "^_"
5750
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"
6151
"brace-style": "off"
6252
"curly": ["error", "all"]
6353
"eslint-comments/require-description": "error"

0 commit comments

Comments
 (0)