Ken Mueller
Ken Mueller

Reputation: 4173

How do you disable semicolons in ESLint for Javascript?

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

Answers (1)

SebastiaanYN
SebastiaanYN

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

Related Questions