mysticatea / eslint-plugin-node

Additional ESLint's rules for Node.js
MIT License
959 stars 170 forks source link

Rule: Use Assert’s strict assertion mode #218

Open sonicdoe opened 4 years ago

sonicdoe commented 4 years ago

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.

AndyOGo commented 2 years ago

That is a great idea!

voxpelli commented 1 year ago

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.