diff --git a/lib/eslint.config_partial.mjs b/lib/eslint.config_partial.mjs index 335692e2cf4a18..a1f9c885a6875b 100644 --- a/lib/eslint.config_partial.mjs +++ b/lib/eslint.config_partial.mjs @@ -46,6 +46,11 @@ const noRestrictedSyntax = [ selector: "CallExpression:matches([callee.type='Identifier'][callee.name='FunctionPrototypeApply'], [callee.type='MemberExpression'][callee.property.type='Identifier'][callee.property.name='apply'][arguments.length=2])", message: 'Use `ReflectApply` instead of %Function.prototype.apply%', }, + // TODO: remove once js_explicit_resource_management is unflagged in V8 + { + selector: 'VariableDeclaration[kind=/^(await )?using$/]', + message: '`[await] using` statements cannot yet be used in /lib, call the disposer in a `try ... finally` block instead.', + }, ]; export default [