Skip to content
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

node>=v9.9.0, assert should use strict mode #134

Closed
aladdin-add opened this issue Aug 2, 2018 · 1 comment
Closed

node>=v9.9.0, assert should use strict mode #134

aladdin-add opened this issue Aug 2, 2018 · 1 comment

Comments

@aladdin-add
Copy link
Contributor

node>=9.9.0

var assert = require('assert'); // invalid, should report an error
var assert = require('assert').strict; // valid
@mysticatea
Copy link
Owner

mysticatea commented Aug 2, 2018

Thank you for this issue.

However, this is intentional.
Node.js community intended to deprecate four methods (assert.equal, assert.deepEqual, assert.notDeepEqual, and assert.notEqual) rather than all of the non-strict methods. See the commit.

brettz9 pushed a commit to brettz9/eslint-plugin-node that referenced this issue Jul 24, 2024
…ea#139)

* feat: Use enhanced-resolve for imports

* chore: Improve the metadata from "ImportTarget"

* chore: remove "enhanced-resolve" from "no-hide-core-modules"

* test: Add a test for mysticatea#66

* feat!: Allow ts paths aliases (mysticatea#84)

* feat: Allow for "allowImportingTsExtensions" (mysticatea#134)

* feat: Add test for import maps (mysticatea#147)

* Update lib/util/import-target.js

Co-authored-by: Sebastian Good <[email protected]>

* test: Add test for n/no-missing-require eslint/use-at-your-own-risk

* chore: Remove esbuild

* feat: Allow for settings.cwd to be used before process.cwd

* chore: replace reference to eslint/use-at-your-own-risk

* chore: Remove more unused packages

* chore: update rule test options to flat config

* fix: incorrect env in tests

---------

Co-authored-by: 唯然 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants