Closed rizowski closed 7 years ago
Does this incorporate a caching/optimization mechanism, so that only the changed files are re-linted, but the output includes all linting?
A breaking change that potentially makes the process take much much longer may anger users; the mechanism described would mitigate that.
@nmschulte There isn't any caching built into eslint-watch. I know Eslint has a caching option that I can pass into the CliEngine. ESW should be passing any variables along but I haven't tested them fully so I will double check to make sure they are working properly.
@nmschulte It is passing the cache variables correctly to CliEngine. I am going to merge this pull request now.
What was the problem/Ticket Number
This Implements #29
How does this solve the problem?
This adds a new flag called
--changed
. This enables current functionality of being able to lint a single file after every save. Default behavior is being changed to linting all files unless otherwise specified.