Skip to content

Commit 03bac20

Browse files
committed
Re-enable the promise-function-async rule
1 parent 302b20d commit 03bac20

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,12 @@ module.exports = {
216216

217217
'@typescript-eslint/prefer-namespace-keyword': 'error',
218218
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
219-
220-
// Disabled because of https://github.com/typescript-eslint/typescript-eslint/issues/369
221-
// '@typescript-eslint/promise-function-async': 'error',
222-
219+
'@typescript-eslint/promise-function-async': [
220+
'error',
221+
{
222+
allowAny: true
223+
}
224+
],
223225
'@typescript-eslint/restrict-plus-operands': 'error',
224226
'@typescript-eslint/require-array-sort-compare': 'error',
225227
semi: 'off',

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242
"simple"
4343
],
4444
"devDependencies": {
45-
"@typescript-eslint/eslint-plugin": "^1.9.0",
46-
"@typescript-eslint/parser": "^1.10.2",
45+
"@typescript-eslint/eslint-plugin": "^1.11.0",
46+
"@typescript-eslint/parser": "^1.11.0",
4747
"ava": "^2.0.0",
4848
"eslint": "^5.16.0",
4949
"temp-write": "^4.0.0",
5050
"typescript": "^3.5.1"
5151
},
5252
"peerDependencies": {
53-
"@typescript-eslint/eslint-plugin": ">=1.9.0",
53+
"@typescript-eslint/eslint-plugin": ">=1.11.0",
5454
"eslint": ">=5.16.0",
5555
"typescript": ">=3.4.0"
5656
}

0 commit comments

Comments
 (0)