node/tools/eslint-rules
Jordan Harband 757c104147
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>
2023-01-10 05:38:36 +00:00
..
alphabetize-errors.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
async-iife-no-unused-result.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
avoid-prototype-pollution.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
crypto-check.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
documented-deprecation-codes.js tools: lint deprecation codes 2022-02-19 18:14:09 +01:00
documented-errors.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
eslint-check.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
inspector-check.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
lowercase-name-for-primitive.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
no-array-destructuring.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
no-duplicate-requires.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
no-unescaped-regexp-dot.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
non-ascii-character.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
prefer-assert-iferror.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
prefer-assert-methods.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
prefer-common-mustnotcall.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
prefer-common-mustsucceed.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
prefer-primordials.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
prefer-proto.js tools: add prefer-proto rule 2023-01-10 05:38:36 +00:00
prefer-util-format-errors.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
require-common-first.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
required-modules.js tools: enforce use of trailing commas in tools/ 2022-12-18 16:39:39 +00:00
rules-utils.js tools: lint deprecation codes 2022-02-19 18:14:09 +01:00