1 | # `no-extra-semi`
|
2 |
|
3 | Disallow unnecessary semicolons.
|
4 |
|
5 | ## Rule Details
|
6 |
|
7 | This rule extends the base [`eslint/no-extra-semi`](https://eslint.org/docs/rules/no-extra-semi) rule.
|
8 | It adds support for class properties.
|
9 |
|
10 | ## How to Use
|
11 |
|
12 | ```jsonc
|
13 | {
|
14 | // note you must disable the base rule as it can report incorrect errors
|
15 | "no-extra-semi": "off",
|
16 | "@typescript-eslint/no-extra-semi": ["error"]
|
17 | }
|
18 | ```
|
19 |
|
20 | ## Options
|
21 |
|
22 | See [`eslint/no-extra-semi` options](https://eslint.org/docs/rules/no-extra-semi#options).
|
23 |
|
24 | <sup>
|
25 |
|
26 | Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/main/docs/rules/no-extra-semi.md)
|
27 |
|
28 | </sup>
|
29 |
|
30 | ## Attributes
|
31 |
|
32 | - Configs:
|
33 | - [x] ✅ Recommended
|
34 | - [x] 🔒 Strict
|
35 | - [x] 🔧 Fixable
|
36 | - [ ] 💭 Requires type information
|