mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 18:25:13 +08:00
tools: enable no-empty ESLint rule
Refs: https://eslint.org/docs/rules/no-empty PR-URL: https://github.com/nodejs/node/pull/41831 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
1 parent
5d559f4a74
commit
de677e9ac2
3 files changed
-3
No files matched your search
@@ -295,7 +295,6 @@ module.exports = {
|
||||
'valid-typeof': ['error', { requireStringLiterals: true }],
|
||||
|
||||
// ESLint recommended rules that we disable
|
||||
'no-empty': 'off',
|
||||
'no-inner-declarations': 'off',
|
||||
|
||||
// JSDoc recommended rules that we disable
|
||||
|
||||
@@ -5,6 +5,5 @@ env:
|
||||
es6: true
|
||||
|
||||
rules:
|
||||
no-empty: error
|
||||
no-var: error
|
||||
prefer-arrow-callback: error
|
||||
@@ -6,7 +6,6 @@ env:
|
||||
|
||||
rules:
|
||||
multiline-comment-style: ["error", "separate-lines"]
|
||||
no-empty: error
|
||||
no-var: error
|
||||
prefer-const: error
|
||||
symbol-description: off
|
||||
|
||||
Reference in new issue
Block a user