eslint-plugin-es icon indicating copy to clipboard operation
eslint-plugin-es copied to clipboard

New Rule Proposal: `no-class-static-block`

Open ota-meshi opened this issue 3 years ago • 0 comments

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 {
    // ...
  }
}

ota-meshi avatar Sep 02 '21 08:09 ota-meshi