Skip to content

Commit

Permalink
feat(eslint-config-angular): disable prefer-destructuring for *.js an…
Browse files Browse the repository at this point in the history
…d *.ts (#215)

Co-authored-by: Ilya Vladimirovich Zyablitsev <i.zyablitsev@tinkoff.ru>
  • Loading branch information
zy2ba and Ilya Vladimirovich Zyablitsev committed Nov 10, 2022
1 parent dd1d1a8 commit d13bb83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -18,6 +18,7 @@ module.exports = {
* as it can report incorrect errors in @typescript-eslint
*/
'no-useless-constructor': 'off',
'prefer-destructuring': 'off',
'@typescript-eslint/no-useless-constructor': ['error'],
'@typescript-eslint/no-inferrable-types': [
'error',
Expand Down
3 changes: 2 additions & 1 deletion packages/eslint-config-angular/recommended/base.js
Expand Up @@ -26,9 +26,10 @@ module.exports = {
parser: '@typescript-eslint/parser',
rules: {
/**
* @note: [*.js, *.ts]
* @note: [*.js, *.ts], exclude *.d.ts
*/
'no-param-reassign': 'off',
'prefer-destructuring': 'off',
'no-case-declarations': 'error',
'no-console': ['error', { allow: ['info', 'assert', 'warn', 'error'] }],
'no-implicit-coercion': ['error', { allow: ['!!'] }],
Expand Down

0 comments on commit d13bb83

Please sign in to comment.