From 757c10414776b6f035ced453599527a841f47d6e Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 9 Jan 2023 21:38:36 -0800 Subject: tools: add `prefer-proto` rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixup: add support for `Object.create(null)` fixup: extend to any 1-argument Object.create call fixup: add tests PR-URL: https://github.com/nodejs/node/pull/46083 Reviewed-By: Colin Ihrig Reviewed-By: Geoffrey Booth Reviewed-By: Yagiz Nizipli Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Darshan Sen Reviewed-By: Michaƫl Zasso Reviewed-By: Jacob Smith Reviewed-By: Antoine du Hamel --- .eslintrc.js | 1 + 1 file changed, 1 insertion(+) (limited to '.eslintrc.js') diff --git a/.eslintrc.js b/.eslintrc.js index b96b2b5690..e1961de42d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -314,6 +314,7 @@ module.exports = { // Custom rules from eslint-plugin-node-core 'node-core/no-unescaped-regexp-dot': 'error', 'node-core/no-duplicate-requires': 'error', + 'node-core/prefer-proto': 'error', }, globals: { ByteLengthQueuingStrategy: 'readable', -- cgit v1.2.1