Open
Description
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 when node:assert
is imported.