Skip to content

v13.1.0

Latest
Compare
Choose a tag to compare
@seek-oss-ci seek-oss-ci released this 30 Apr 01:51
8519dc1

Minor Changes

  • Adds no-fallthrough as an error. (#135)
    This disallows fallthrough of case statements in switch statements.

    Examples

    You need to add a break, return or throw to each case. You can also skip this rule if it is intentionally absent (however that is a rare scenario).

    switch (name) {
      case 'John':
        console.log('Hi John');
    +   break;
    }

Patch Changes