Skip to content

Commit 72c6651

Browse files
author
Paul Marbach
committed
fix(eslint-config-typescript): add no-useless-constructor override
no-useless-constructor is one of those ESLint rules that fails to work properly in a TS app, like no-unused-vars. an override must be provided for those using TypeScript./
1 parent 6717e8e commit 72c6651

File tree

1 file changed

+3
-0
lines changed
  • packages/eslint-config-typescript

1 file changed

+3
-0
lines changed

packages/eslint-config-typescript/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@ module.exports = {
2121
// no-unused-vars interference fix.
2222
'no-unused-vars': 'off',
2323
'@typescript-eslint/no-unused-vars': 'warn',
24+
// no-useless-constructor interference fix.
25+
'no-useless-constructor': 'off',
26+
'@typescript-eslint/no-useless-constructor': 'error',
2427
},
2528
};

0 commit comments

Comments
 (0)