Run ESLint --fix on save / only on modified files

Answered

I have “Run ESLint --fix on save” enabled: 

The problem is that it often freezes up my IDE, sometime I even have to force quit IntelliJ IDEA.

It seems that this actually runs against all files, not just the open/modified files. Applying ESLint fixes to the entire codebase on every save seems to be a performance problem. Is there a way to configure IntelliJ to only run ESLint --fix on modified files?

0
3 comments

Run ESLint --fix on save actually runs against “dirty” files only (i.e. only those that have unsaved changes)

0

Hm, yeah that does make sense, but I did some tests and saw that editing one file caused another non-dirty file to get ESLint fixes applied…

0

Unfortunately I failed to reproduce this.

Could you share a minimal test project and steps that reproduce it?

0

Please sign in to leave a comment.