From b507c604eff3ed0dfc0c801c3ddbd58001da796c Mon Sep 17 00:00:00 2001 From: LiviaMedeiros Date: Tue, 17 Nov 2026 04:05:29 +0800 Subject: [PATCH] tools: drop obsolete linter rules for explicit resource management Signed-off-by: LiviaMedeiros --- lib/eslint.config_partial.mjs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/eslint.config_partial.mjs b/lib/eslint.config_partial.mjs index fcd4dd4aa78c..bbb0655bdcfc 100644 --- a/lib/eslint.config_partial.mjs +++ b/lib/eslint.config_partial.mjs @@ -412,16 +412,6 @@ export default [ name: 'SubtleCrypto', message: "Use `const { SubtleCrypto } = require('internal/crypto/webcrypto');` instead of the global.", }, - // DisposableStack and AsyncDisposableStack are not available in primordials because they can be - // disabled with --no-js-explicit-resource-management CLI flag. - { - name: 'DisposableStack', - message: 'Use `const { DisposableStack } = globalThis;` instead of the global.', - }, - { - name: 'AsyncDisposableStack', - message: 'Use `const { AsyncDisposableStack } = globalThis;` instead of the global.', - }, ], 'no-restricted-modules': [ 'error',