rizowski / eslint-watch

ESLint with simple watching capabilities
https://www.npmjs.com/package/eslint-watch
MIT License
196 stars 29 forks source link

command line is do twice? #95

Closed wklc2014 closed 7 years ago

wklc2014 commented 7 years ago

image

esw -w It check twice?

rizowski commented 7 years ago

@wklc2014 Do you have anything else running? (ex. Webpack)

rizowski commented 7 years ago

With no additional information I am closing this issue.

alecmev commented 7 years ago

@rizowski I'm observing this too:

C:\src\index.js (1/0)
  ✖  14:7  'x' is assigned a value but never used  no-unused-vars

✖ 1 error (12:59:38)

C:\src\index.js (1/0)
  ✖  14:7  'x' is assigned a value but never used  no-unused-vars

✖ 1 error (12:59:38)

Sometimes it triggers twice, sometimes once, no way to predict. This happens if I esw --watch src. If I do esw --watch src/index.js instead, then the problem goes away. There are no other files in src. This is on Windows, latest everything.