Skip to content
This repository was archived by the owner on May 2, 2023. It is now read-only.

Commit cddff70

Browse files
committed
tools: activate more eslint rules
This activates the following recommended eslint rules: - no-async-promise-executor - no-shadow-restricted-names PR-URL: nodejs#27670 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Refael Ackermann (רפאל פלחי) <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Ujjwal Sharma <[email protected]>
1 parent 0117b3f commit cddff70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.eslintrc.js

+2
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ module.exports = {
114114
tabWidth: 2,
115115
}],
116116
'new-parens': 'error',
117+
'no-async-promise-executor': 'error',
117118
'no-class-assign': 'error',
118119
'no-confusing-arrow': 'error',
119120
'no-const-assign': 'error',
@@ -246,6 +247,7 @@ module.exports = {
246247
'no-return-await': 'error',
247248
'no-self-assign': 'error',
248249
'no-self-compare': 'error',
250+
'no-shadow-restricted-names': 'error',
249251
'no-tabs': 'error',
250252
'no-template-curly-in-string': 'error',
251253
'no-this-before-super': 'error',

0 commit comments

Comments
 (0)