Skip to content

Add rules for Explicit Resource Management (ES2026) #260

@ota-meshi

Description

@ota-meshi

https://github.com/tc39/proposal-explicit-resource-management
tc39/ecma262#3000
https://arai-a.github.io/ecma262-compare/?pr=3000

We probably need rules like this:

  • no-using-declarations (disallow using and await using declarations)
  • no-asyncdisposablestack (disallow AsyncDisposableStack)
  • no-disposablestack (disallow DisposableStack)
  • no-suppressederror (disallow SuppressedError)

non-standard:

  • no-nonstandard-suppressederror-properties So far we have not implemented any rules for error properties.
  • no-nonstandard-suppressederror-prototype-properties So far we have not implemented any rules for error properties.
  • no-nonstandard-disposablestack-properties
  • no-nonstandard-disposablestack-prototype-properties
  • no-nonstandard-asyncdisposablestack-properties
  • no-nonstandard-asyncdisposablestack-prototype-properties

Update:

  • no-nonstandard-symbol-properties

I'm not sure if we need to add the following rules:

  • no-symbol-asyncdispose (disallow Symbol.asyncDispose)
  • no-symbol-dispose (disallow Symbol.dispose)

no-symbol-matchall was not added in ES2020 🤔 -> I have opened a separate issue: #262

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions