Reputation: 820
On every time on file save ESLint gives this error:
ESLint: Insert
⏎ (prettier/prettier)
When I add new line, it remove it and still shows this error.
How can I prevent this ESLint error in WebStorm?
Upvotes: 0
Views: 9714
Reputation: 820
To prevent it on intellij (Web Storm etc), set editor config to add new line at the end of all files.
You can set this:
Settings → Editor → General → Ensure line feed at file end on Save
More detail: https://stackoverflow.com/a/16761228/134739
Upvotes: 1