Skip to content

Commit e85416f

Browse files
committed
feat: add prefer-optional-chain
1 parent b3a0907 commit e85416f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,11 @@ module.exports = {
240240
'@typescript-eslint/prefer-function-type': 'error',
241241
'@typescript-eslint/prefer-includes': 'error',
242242
'@typescript-eslint/prefer-namespace-keyword': 'error',
243+
'@typescript-eslint/prefer-optional-chain': 'error',
244+
'@typescript-eslint/prefer-nullish-coalescing': 'off', // https://github.com/typescript-eslint/typescript-eslint/issues/1265
243245
'@typescript-eslint/type-annotation-spacing': 'off',
244246
'@typescript-eslint/triple-slash-reference': 'error',
247+
'@typescript-eslint/return-await': 'error',
245248
'@typescript-eslint/unbound-method': 'error',
246249
'@typescript-eslint/unified-signatures': 'error',
247250

0 commit comments

Comments
 (0)