deno_lint icon indicating copy to clipboard operation
deno_lint copied to clipboard

feat: add no-empty-case

Open ahaoboy opened this issue 10 months ago • 1 comments

Remove empty switch-case statements

switch (n) {
  case 0: { }
  case 1: { }
  default: {
    // TODO
  }
}
switch (n) {
  case 0: 
  case 1: 
  default: {
    // TODO
  }
}

ahaoboy avatar Jan 28 '25 14:01 ahaoboy

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jan 28 '25 14:01 CLAassistant