Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
892 views
in Technique[技术] by (71.8m points)

intellij idea - ESLint: Insert `?` (prettier/prettier) error in WebStorm

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?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...