Skip to content

Commit 24eedbb

Browse files
committed
1 parent 5a5fbec commit 24eedbb

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,13 @@ module.exports = {
172172
'@typescript-eslint/no-for-in-array': 'error',
173173
'@typescript-eslint/no-inferrable-types': 'error',
174174
'@typescript-eslint/no-misused-new': 'error',
175+
'@typescript-eslint/no-misused-promises': [
176+
'error',
177+
{
178+
checksConditionals: true,
179+
checksVoidReturn: true,
180+
}
181+
],
175182

176183
// TODO: Enable this again when I target ESM output in all my TypeScript projects
177184
// '@typescript-eslint/no-namespace': 'error',

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242
"simple"
4343
],
4444
"devDependencies": {
45-
"@typescript-eslint/eslint-plugin": "^1.12.0",
46-
"@typescript-eslint/parser": "^1.12.0",
45+
"@typescript-eslint/eslint-plugin": "^1.13.0",
46+
"@typescript-eslint/parser": "^1.13.0",
4747
"ava": "^2.2.0",
48-
"eslint": "^5.16.0",
48+
"eslint": "^6.1.0",
4949
"temp-write": "^4.0.0",
5050
"typescript": "^3.5.3"
5151
},
5252
"peerDependencies": {
53-
"@typescript-eslint/eslint-plugin": ">=1.12.0",
53+
"@typescript-eslint/eslint-plugin": ">=1.13.0",
5454
"eslint": ">=5.16.0",
5555
"typescript": ">=3.5.3"
5656
}

0 commit comments

Comments
 (0)