Skip to content

Commit bdb726c

Browse files
authored
allow 'finally' to be chained onto a promise (#8)
* allow 'finally' to be chained onto a promise * version bump
1 parent 6d226aa commit bdb726c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ module.exports = {
156156
'promise/always-return': 'warn',
157157
'promise/no-return-wrap': 'warn',
158158
'promise/param-names': 'warn',
159-
'promise/catch-or-return': 'warn',
159+
'promise/catch-or-return': ['warn', {allowFinally: true}],
160160
'promise/no-native': 'off',
161161
'promise/no-nesting': 'warn',
162162
'promise/no-promise-in-callback': 'warn',

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-tree",
3-
"version": "5.0.1",
3+
"version": "5.0.2",
44
"description": "Shared Tree configuration that contains overrides and enhancements on top of the base frontier configuration.",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)