eslint-plugin-node icon indicating copy to clipboard operation
eslint-plugin-node copied to clipboard

Rule: Use Assert’s strict assertion mode

Open sonicdoe opened this issue 5 years ago • 2 comments

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.

sonicdoe avatar May 05 '20 10:05 sonicdoe

That is a great idea!

AndyOGo avatar Apr 28 '22 16:04 AndyOGo

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.

voxpelli avatar Aug 13 '23 12:08 voxpelli