---
source: crates/oxc_linter/src/tester.rs
expression: no_empty_static_block
---
  ⚠ eslint(no-empty-static-block): Disallow empty static blocks
   ╭─[no_empty_static_block.tsx:1:1]
 1 │ class Foo { static {} }
   ·             ─────────
   ╰────
  help: Unexpected empty static block.

  ⚠ eslint(no-empty-static-block): Disallow empty static blocks
   ╭─[no_empty_static_block.tsx:1:1]
 1 │ class Foo { static { } }
   ·             ──────────
   ╰────
  help: Unexpected empty static block.

  ⚠ eslint(no-empty-static-block): Disallow empty static blocks
   ╭─[no_empty_static_block.tsx:1:1]
 1 │ ╭─▶ class Foo { static {
 2 │ │   
 3 │ ╰─▶              } }
   ╰────
  help: Unexpected empty static block.

  ⚠ eslint(no-empty-static-block): Disallow empty static blocks
   ╭─[no_empty_static_block.tsx:1:1]
 1 │ class Foo { static { bar(); } static {} }
   ·                               ─────────
   ╰────
  help: Unexpected empty static block.


