no-extra-semi
Disallow unnecessary semicolons.
✅
Extending "plugin:@typescript-eslint/recommended"
in an ESLint configuration enables this rule.
🔧
Some problems reported by this rule are automatically fixable by the --fix
ESLint command line option.
Examples
This rule extends the base eslint/no-extra-semi
rule.
It adds support for class properties.
Options
.eslintrc.cjs
module.exports = {
"rules": {
// Note: you must disable the base rule as it can report incorrect errors
"no-extra-semi": "off",
"@typescript-eslint/no-extra-semi": "error"
}
};
See eslint/no-extra-semi
options.
How to Use
Resources
Taken with ❤️ from ESLint core