tools: activate more eslint rules
This activates the following recommended eslint rules: - no-async-promise-executor - no-shadow-restricted-names PR-URL: https://github.com/nodejs/node/pull/27670 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Refael Ackermann (רפאל פלחי) <refack@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
This commit is contained in:
parent
0117b3ff3c
commit
cddff701f8
@ -114,6 +114,7 @@ module.exports = {
|
|||||||
tabWidth: 2,
|
tabWidth: 2,
|
||||||
}],
|
}],
|
||||||
'new-parens': 'error',
|
'new-parens': 'error',
|
||||||
|
'no-async-promise-executor': 'error',
|
||||||
'no-class-assign': 'error',
|
'no-class-assign': 'error',
|
||||||
'no-confusing-arrow': 'error',
|
'no-confusing-arrow': 'error',
|
||||||
'no-const-assign': 'error',
|
'no-const-assign': 'error',
|
||||||
@ -246,6 +247,7 @@ module.exports = {
|
|||||||
'no-return-await': 'error',
|
'no-return-await': 'error',
|
||||||
'no-self-assign': 'error',
|
'no-self-assign': 'error',
|
||||||
'no-self-compare': 'error',
|
'no-self-compare': 'error',
|
||||||
|
'no-shadow-restricted-names': 'error',
|
||||||
'no-tabs': 'error',
|
'no-tabs': 'error',
|
||||||
'no-template-curly-in-string': 'error',
|
'no-template-curly-in-string': 'error',
|
||||||
'no-this-before-super': 'error',
|
'no-this-before-super': 'error',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user