Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7285de2

Browse files
committed
Use typescript-eslint rule in typescript config
1 parent 02531e6 commit 7285de2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/configs/typescript.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ module.exports = {
55
rules: {
66
camelcase: 'off',
77
'no-unused-vars': 'off',
8+
'no-shadow': 'off',
9+
'@typescript-eslint/no-shadow': 'on',
810
'@typescript-eslint/interface-name-prefix': 'off',
911
'@typescript-eslint/array-type': ['error', {default: 'array-simple'}],
1012
'@typescript-eslint/no-use-before-define': 'off',

0 commit comments

Comments
 (0)