prefer-import/assert-strict
: new rule to prefer import 'node:assert/strict'
#59
Labels
prefer-import/assert-strict
: new rule to prefer import 'node:assert/strict'
#59
There are two imports for asserts:
import assert from 'node:assert/strict'
: Strict assertion mode;import assert from 'node:assert'
: Legacy assertion mode that exports 4 functions no longer actively maintained (deepEqual
,equal
,notDeepEqual
andnotEqual
).I propose a new rule
prefer-import/assert-strict
that reports an error whennode:assert
is imported.The text was updated successfully, but these errors were encountered: