eslint-plugin-node
eslint-plugin-node copied to clipboard
Rule: Use Assert’s strict assertion mode
From Node.js’s docs on Assert’s legacy assertion mode (require('assert')):
Whenever possible, use the strict assertion mode instead.
A rule to make sure to always use strict assertion method (require('assert').strict) would be quite helpful.
That is a great idea!
eslint-plugin-n is the maintained version of this module.
We switched to it in eg. eslint-config-standard / standard and it is maintained by me and other members of the official ESLint community organization.
Try that module out and if it isn't fixed there, then open a new issue in that project.