Skip to content

Commit

Permalink
fix: properly configure @typescript-eslint/parameter-properties
Browse files Browse the repository at this point in the history
  • Loading branch information
robertrossmann committed Jul 11, 2023
1 parent 2017f25 commit 2f7b4bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/eslint-config-typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ module.exports = {
// Disallow the use of parameter properties in class constructors
// This rule disallows the use of parameter properties in constructors, forcing the user to
// explicitly declare all properties in the class.
'@typescript-eslint/no-parameter-properties': 'warn',
'@typescript-eslint/parameter-properties': ['warn', {
prefer: 'class-property',
}],

// Disallow variable redeclaration
'@typescript-eslint/no-redeclare': ['error', {
Expand Down

0 comments on commit 2f7b4bf

Please sign in to comment.