0

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?

LazyOne
  • 158,824
  • 45
  • 388
  • 391
Nuri Akman
  • 792
  • 3
  • 18
  • 41

1 Answers1

1

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

Nuri Akman
  • 792
  • 3
  • 18
  • 41