Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit 8dcfc8d

Browse files
committed
turn on autofix of explicit any type to unknown in TS
1 parent 67635d2 commit 8dcfc8d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/typescript.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ module.exports = {
8383
'@typescript-eslint/no-empty-interface': ['error', {
8484
allowSingleExtends: true,
8585
}],
86-
'@typescript-eslint/no-explicit-any': 'error',
86+
'@typescript-eslint/no-explicit-any': ['error', {
87+
fixToUnknown: true,
88+
ignoreRestArgs: false,
89+
}],
8790
'@typescript-eslint/no-extra-parens': 'off',
8891
'@typescript-eslint/no-extraneous-class': 'error',
8992
'@typescript-eslint/no-floating-promises': 'error',

0 commit comments

Comments
 (0)