diff options
author | Jordan Harband <ljharb@gmail.com> | 2023-01-09 21:38:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 05:38:36 +0000 |
commit | 757c10414776b6f035ced453599527a841f47d6e (patch) | |
tree | 8d51c5c789eb6832ab71a5cde64813c71a4f8879 /.eslintrc.js | |
parent | 5d9a9a6ba323916a978e737e6cee73c6df956afa (diff) | |
download | node-new-757c10414776b6f035ced453599527a841f47d6e.tar.gz |
tools: add `prefer-proto` rule
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 <cjihrig@gmail.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 1 |
1 files changed, 1 insertions, 0 deletions
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', |