Skip to content

Commit

Permalink
fix(eslint-config): disable plain rules for typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
s.v.zaytsev committed Mar 13, 2024
1 parent 8eb1e2a commit 4742045
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/eslint-config-angular/recommended/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ module.exports = {
* @note: [*.js, *.ts], exclude *.d.ts
*/
'no-param-reassign': 'off',
'default-param-last': 'off',
'prefer-destructuring': 'off',
'no-case-declarations': 'error',
'no-console': ['error', { allow: ['info', 'assert', 'warn', 'error'] }],
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config/internal/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ module.exports = {
},
],
'@typescript-eslint/ban-ts-comment': 'warn',
'no-empty-function': 'off',
'@typescript-eslint/no-empty-function': 'warn',
// standard no-unused-expressions don't understand optional chaining from ts
'no-unused-expressions': 'off',
Expand Down

0 comments on commit 4742045

Please sign in to comment.