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:
Rich Trott authored and Ruy Adorno committed 2022-02-07 23:29:53 -05:00
1 parent c694dae41c
commit 0d471fb0d4
3 files changed
-3

No files matched your search

-1
View File
@@ -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
-1
View File
@@ -5,6 +5,5 @@ env:
es6: true
rules:
no-empty: error
no-var: error
prefer-arrow-callback: error
-1
View File
@@ -6,7 +6,6 @@ env:
rules:
multiline-comment-style: ["error", "separate-lines"]
no-empty: error
no-var: error
prefer-const: error
symbol-description: off