Reputation: 4173
I want to not allow semicolons to be placed at the end of lines in my Javascript code using ESLint. "semi"
and "no-extra-semi"
don't work, and I can't find any documentation on how to do this.
Upvotes: 25
Views: 30256
Reputation: 626
You want to set semi
to ["error", "never"]
. This will error when there is a semicolon. Documentation can be found here https://eslint.org/docs/rules/semi#never
Upvotes: 36