Comments (4)
🤔 Huh I'll have to look into that when I get a chance. I agree with you, it shouldn't remove color when running through esw. It also shouldn't be duplicating errors.
from eslint-watch.
Thanks.
Also,
- iTerm2 Build 3.2.9
- macOS Mojave 10.14.5
from eslint-watch.
for me simply using --color -w
reproduces the issue
from eslint-watch.
I've been running into a similar issue and I figured our by running esw
with DEBUG=esw:*
that this was in fact caused by using simultaneously --cache
and -w
:
esw:events:watch Detected change: .eslintcache +826ms
esw:eslint Executing [ '--cache', '--ext', [ '.json', '.js', '.html' ], '--eslintrc', '--ignore', '--inline-config', '.' ] +0ms
esw:events:watch Detected change: .eslintcache +708ms
esw:eslint Executing [ '--cache', '--ext', [ '.json', '.js', '.html' ], '--eslintrc', '--ignore', '--inline-config', '.' ] +0ms
I fixed it by changing my eslint-watch command to esw --cache -w --color src/
instead of esw --cache -w --color .
EDIT: actually, using --watch-ignore '/.git|node_modules|.eslintcache/'
does the same job
from eslint-watch.
Related Issues (20)
- Option to not print "clean" message; only errors HOT 4
- Changing branches on git triggers dozens of concurrent `eslint` processes to be created HOT 3
- Hope to have more comfortable information. HOT 2
- npm audit high priority warning HOT 1
- Error parsing '--rule' CLI option HOT 2
- Missing Module HOT 3
- Running `esw --changed -w` causes non-JS files to attempt to be linted HOT 4
- Slowness, maybe because it's not just linting an individual file? not sure HOT 1
- Watch mode does print to the console HOT 4
- ESLint 8 support HOT 2
- "The --print-config option must be used with exactly one file name." HOT 1
- Nothing happens HOT 6
- `ENOENT` of `eslint` causes a silent exit rather than an expected error message to install `eslint`
- Print a message upon file watch trigger HOT 3
- --watch-ignore should include by default the ignored patterns
- Tried it and had to uninstall it HOT 2
- `--watch` doesn't respect file overrides, relies erroneously on `--ext`
- esw should read and ignore anything in `.eslintignore`
- Support for ESLint 9 and flat config
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-watch.