Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 57ff032

Browse files
committed
[eslint config] [base] [minor] no-return-assign: strengthen linting against returning assignments.
1 parent 3a9e1c8 commit 57ff032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/eslint-config-airbnb-base/rules/best-practices.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ module.exports = {
205205
}],
206206

207207
// disallow use of assignment in return statement
208-
'no-return-assign': 'error',
208+
'no-return-assign': ['error', 'always'],
209209

210210
// disallow redundant `return await`
211211
'no-return-await': 'error',

0 commit comments

Comments
 (0)