Skip to content

Commit

Permalink
chore: add comments about the prefer-optional-chain rule
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Jul 22, 2022
1 parent 410df39 commit 0b517a3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,13 @@ module.exports = defineConfig({
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
'@typescript-eslint/prefer-includes': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',

// This rule seems different:
// it does not require type information, but as its source code requires the parserService,
// it seems to be encountering undefined behavior in `.vue` files
// <https://github.com/typescript-eslint/typescript-eslint/issues/4755#issuecomment-1080961338>
'@typescript-eslint/prefer-optional-chain': 'off',

'@typescript-eslint/prefer-readonly': 'off',
'@typescript-eslint/prefer-reduce-type-parameter': 'off',
'@typescript-eslint/promise-function-async': 'off',
Expand Down

0 comments on commit 0b517a3

Please sign in to comment.