rizowski / eslint-watch

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

Add rule to options #144

Closed HsuTing closed 6 years ago

HsuTing commented 6 years ago

What was the problem/Ticket Number

Some rules need to be off in watch mode, like prettier/prettier. This should be checked in lint after prettier --write, but I think this should not be checked in watch mode. As a result, I will use command like esw --ext .js --rule 'prettier/prettier: off' ..

How does this solve the problem?

Add rule to options.

How to duplicate the issue

  1. Add --rule in command like --rule 'prettier/prettier: off'.
  2. Modify files.
HsuTing commented 6 years ago

I did not know how to fix coverage, can someone help me?

rizowski commented 6 years ago

This has been published in version v4.0.2