Skip to content

Commit

Permalink
Add @typescript-eslint/parameter-properties rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 27, 2022
1 parent 6e7a385 commit 6b9c65d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,12 @@ module.exports = {
],
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/non-nullable-type-assertion-style': 'error',
'@typescript-eslint/parameter-properties': [
'error',
{
prefer: 'parameter-properties'
}
],
'@typescript-eslint/prefer-as-const': 'error',
'@typescript-eslint/prefer-for-of': 'error',
'@typescript-eslint/prefer-function-type': 'error',
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
"simple"
],
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.19.0",
"@typescript-eslint/parser": "^5.19.0",
"@typescript-eslint/eslint-plugin": "^5.21.0",
"@typescript-eslint/parser": "^5.21.0",
"ava": "^2.4.0",
"eslint": "^7.8.1",
"typescript": ">=4.4"
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": ">=5.19.0",
"@typescript-eslint/eslint-plugin": ">=5.21.0",
"eslint": ">=8.0.0",
"typescript": ">=4.4"
}
Expand Down

0 comments on commit 6b9c65d

Please sign in to comment.