Skip to content

Commit 0b517a3

Browse files
committed
chore: add comments about the prefer-optional-chain rule
1 parent 410df39 commit 0b517a3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/eslint-config-standard-with-typescript/allow-tsx-in-vue.cjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ module.exports = defineConfig({
5353
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
5454
'@typescript-eslint/prefer-includes': 'off',
5555
'@typescript-eslint/prefer-nullish-coalescing': 'off',
56+
57+
// This rule seems different:
58+
// it does not require type information, but as its source code requires the parserService,
59+
// it seems to be encountering undefined behavior in `.vue` files
60+
// <https://github.com/typescript-eslint/typescript-eslint/issues/4755#issuecomment-1080961338>
5661
'@typescript-eslint/prefer-optional-chain': 'off',
62+
5763
'@typescript-eslint/prefer-readonly': 'off',
5864
'@typescript-eslint/prefer-reduce-type-parameter': 'off',
5965
'@typescript-eslint/promise-function-async': 'off',

0 commit comments

Comments
 (0)