openreachtech / eslint-rules-default

A showcasing package all the rules of ESLint.
MIT License
0 stars 0 forks source link

🐛 Fix `@stylistic/semi` rule #248

Closed StewEucen closed 3 months ago

StewEucen commented 3 months ago

Overview

Note

{
  rules: {
    '@stylistic/semi': [
      'error',
      'always',
      // When 2nd item of options is 'always', used below object as 3rd item.
      {
        omitLastInOneLineBlock: true,
        omitLastInOneLineClassBody: true,
      },
      // When 2nd item of options is 'never', used below object as 3rd item.
      // {
      //   beforeStatementContinuationChars: 'any',
      // },
    ],
  },
}