JS.TS.NO.EXTRA.SEMI

Disallow unnecessary semicolons

Rule Details

This rule extends the base eslint/no-extra-semi (https://eslint.org/docs/rules/no-extra-semi) rule. It adds support for class properties.

How to Use

Copy
{
  // note you must disable the base rule as it can report incorrect errors
  "no-extra-semi": "off",
  "@typescript-eslint/no-extra-semi": ["error"]
}

Options

See eslint/no-extra-semi options (https://eslint.org/docs/rules/no-extra-semi#options).

The content on this page is adapted from the ESLint User Guide. Copyright © OpenJS Foundation and other contributors, www.openjsf.org. All rights reserved. https://eslint.org/docs/rules/