Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/eslint.config_partial.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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:matches([kind='using'], [kind='await using'])",
message: '`[await] using` statements cannot yet be used in /lib, call the disposer in a `try ... finally` block instead.',
},
];

export default [
Expand Down
Loading