-
-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rule proposal: require node:assert/strict #2420
Comments
This would probably be better suited for https://github.com/eslint-community/eslint-plugin-n |
Looks like the original |
While I don't see a strictly followed conceptual split between this plugin and |
👍 |
For reference, I found some relevant tickets already in |
Description
The built-in Node.js
node:assert
module is considered "legacy" andnode:assert/strict
is the non-legacy module. See the docs here: https://nodejs.org/api/assert.html#legacy-assertion-mode.In particular, those docs note that the legacy
node:assert
module may produce unexpected, rather absurd, results.Fail
Pass
Proposed rule name
prefer-node-assert-strict, prefer-strict-node-assert, prefer-strict-node-assert-module, prefer-strict-node-import
Additional Info
No response
The text was updated successfully, but these errors were encountered: