-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: prefer strict Node assert (#618)
This change should have no impact on functionality. `node:assert` has two modes: [strict] and [legacy]. The latter can have some strange behavior. This adds an [ESLint rule][no-restricted-imports] to prefer the strict mode, and fixes all violations. I think this is a useful change on its own but it should make it a little easier to drop Brittle in the future. [strict]: https://nodejs.org/api/assert.html#strict-assertion-mode [legacy]: https://nodejs.org/api/assert.html#legacy-assertion-mode [no-restricted-imports]: https://eslint.org/docs/latest/rules/no-restricted-imports
- Loading branch information
Showing
4 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters