Skip to content

Commit 98bf8eb

Browse files
committed
Add @typescript-eslint/no-invalid-void-type rule
1 parent 5c92496 commit 98bf8eb

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ module.exports = {
104104
],
105105
'default-param-last': 'off',
106106
'@typescript-eslint/default-param-last': 'error',
107+
'dot-notation': 'off',
108+
'@typescript-eslint/dot-notation': 'error',
107109
'@typescript-eslint/consistent-type-assertions': [
108110
'error',
109111
{
@@ -289,6 +291,7 @@ module.exports = {
289291
],
290292
'@typescript-eslint/no-for-in-array': 'error',
291293
'@typescript-eslint/no-inferrable-types': 'error',
294+
'@typescript-eslint/no-invalid-void-type': 'error',
292295
'@typescript-eslint/no-misused-new': 'error',
293296
'@typescript-eslint/no-misused-promises': [
294297
'error',

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@
4444
"simple"
4545
],
4646
"devDependencies": {
47-
"@typescript-eslint/eslint-plugin": "^2.29.0",
48-
"@typescript-eslint/parser": "^2.29.0",
47+
"@typescript-eslint/eslint-plugin": "^2.30.0",
48+
"@typescript-eslint/parser": "^2.30.0",
4949
"ava": "^2.4.0",
5050
"eslint": "^6.8.0",
5151
"temp-write": "^4.0.0",
5252
"typescript": "^3.8.3"
5353
},
5454
"peerDependencies": {
55-
"@typescript-eslint/eslint-plugin": ">=2.29.0",
55+
"@typescript-eslint/eslint-plugin": ">=2.30.0",
5656
"eslint": ">=6.6.0",
5757
"typescript": ">=3.5.3"
5858
}

0 commit comments

Comments
 (0)