-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run npx eslint . --ext .js,.ts --fix
#277
Conversation
eslint . --ext .js,.ts --fix
npx eslint . --ext .js,.ts --fix
Hmm, the CI now suggests the inverse. There must be something wrong with my setup I suppose. Will try a fresh clone. |
Nope, still present on fresh clone. Very strange. Node
|
What is your |
|
I'm unable to repro. I wonder if you have one of these tools installed globally which is overriding the local version or something? Whats the output of |
Yes, I have many global packages. Will try to uninstall. Meanwhile I tested in a fresh docker container with node 21, and it does work in there, so this must be some npm global influence. |
Found the problem. My Checking whether I can remove this without causing npm to write new lockfiles in v2, which I want to avoid... |
Yeah, npm v10.5.0 still writes new v3 lockfiles, so the option was unnecessary and I removed it. Sorry for the trouble. The problem could have been avoided by declaring |
After testing #278, it turns out I made an error (I had moved away the |
npm run build
refused to proceed building without this.I think the issue is because some eslint module is not properly locked down to a particular version. It would be even better to not have linting as a dependency to the build.