Skip to content

New Rule Proposal: no-class-static-block #78

@ota-meshi

Description

@ota-meshi

Please describe what the rule should do:

Disallow class static initialization blocks added in ES2022.

https://github.com/tc39/proposal-class-static-block

Provide 2-3 code examples that this rule will warn about:

class C {
  static {
    // ...
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions