Skip to content

Commit cb4a841

Browse files
committed
Add comment about bug in assert and assert.ok
1 parent f68ebd8 commit cb4a841

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config-v-next/eslint.cjs

+2
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ function createConfig(configFilePath, packageEntryPoints = []) {
227227
message:
228228
"Use non-strict methods when importing from 'node:assert/strict'",
229229
},
230+
// We forbid using assert.ok and assert directly without a message
231+
// as this may cause a bug. See: https://github.com/nodejs/node/issues/52962
230232
{
231233
selector: "CallExpression[callee.name='assert'][arguments.length<2]",
232234
message:

0 commit comments

Comments
 (0)