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 Node.js GitHub Bot committed 2022-02-05 12:58:33 +00:00
1 parent 5d559f4a74
commit de677e9ac2
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