Comments (17)
This issue most likely resides in the help parser. Formatting or spaces might have changed. It will be the first thing to break since it needs to run before anything else can occur.
from eslint-watch.
Cool, I am going to pull this in and publish 2.1.11
from eslint-watch.
@rivertam I noticed this today as well. Thanks for posting.
from eslint-watch.
Of course. Thanks for the quick response.
from eslint-watch.
@rivertam This should be fixed on OSX and Linux. I am currently verifying it is fixed on Windows.
#83
Could you please use the ew-81 branch and verify it is also fixed for you?
from eslint-watch.
Well, I don't really know how to do that, but I did the following:
- Clone the repo
- Check out the ew-81 branch
- Run
npm i -g .
inside the folder - Try
esw
in my own repository
from eslint-watch.
My package.json is specified in /Users/ben/frontend, not /Users/frontend/build/
from eslint-watch.
Try this
git clone https://github.com/rizowski/eslint-watch.git -b ew-81
npm i && npm link
- CD into the project you saw the error
esw
Another way of doing it is specifying it in your package.json
...
"scripts": {
"lint": "esw --quiet"
},
...
"devDependencies": {
"eslint-watch": "rizowski/eslint-watch#ew-81"
}
npm run lint
from eslint-watch.
Alas, the same issue.
from eslint-watch.
Can you run it with DEBUG=* esw
so I can see what it is doing?
from eslint-watch.
from eslint-watch.
@rivertam Do you have any other projects you can test this on?
from eslint-watch.
@rizowski Hmm, yeah it seems to be working on another repo, but it's not actually watching. Just says "clean" and then exits (not sure if this is normal behavior). I am trying to use this within frontend
though.
I'd include the debug logs for the "working" repo, but they're insanely long (over 1000 lines long; not sure how much)
from eslint-watch.
I think for the first project you just need to add an ignore rule for your build folder. It looks like it is trying to lint your build folder, which in my experience I haven't wanted to do since I am either building my assets, minifying code, etc etc.. Is that the case here?
from eslint-watch.
Ah, yeah, that seems to be the problem. It's still exiting immediately, but that's a PEBKAC error; just forgot to specify -w
flag haha.
from eslint-watch.
Thank you!
from eslint-watch.
2.1.11 has been released:
https://github.com/rizowski/eslint-watch/releases/tag/v2.1.11
https://www.npmjs.com/package/eslint-watch
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
- `--clear --color -w` causes duplicated output 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.