Skip to content

Commit 2437055

Browse files
committed
squash: no primordial yet
1 parent b3678d2 commit 2437055

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

lib/eslint.config_partial.mjs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,11 +356,22 @@ export default [
356356
name: 'SubtleCrypto',
357357
message: "Use `const { SubtleCrypto } = require('internal/crypto/webcrypto');` instead of the global.",
358358
},
359-
// Float16Array is not available in primordials because it's only available with --js-float16array CLI flag.
359+
// Float16Array is not available in primordials because it can be
360+
// disabled with --no-js-float16array CLI flag.
360361
{
361362
name: 'Float16Array',
362363
message: 'Use `const { Float16Array } = globalThis;` instead of the global.',
363364
},
365+
// DisposableStack and AsyncDisposableStack are not available in primordials because they can be
366+
// disabled with --no-js-explicit-resource-management CLI flag.
367+
{
368+
name: 'DisposableStack',
369+
message: 'Use `const { DisposableStack } = globalThis;` instead of the global.',
370+
},
371+
{
372+
name: 'AsyncDisposableStack',
373+
message: 'Use `const { AsyncDisposableStack } = globalThis;` instead of the global.',
374+
},
364375
],
365376
'no-restricted-modules': [
366377
'error',

0 commit comments

Comments
 (0)