-
Notifications
You must be signed in to change notification settings - Fork 208
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
Gts lint returning exit code 1 when using yarn 4.0.2 #847
Comments
Same issue, as of version 5.1.0. At version 5.0.1 it works
|
Lint was failing on a pipeline I had setup on the workflows. Had to downgrade gts from "5.2.0" to "5.0.1" and it worked. |
Same problem here. Why is gts printing 'version 21' and returning exit code 1 when linting? Also, same exit code and printing out error on fixing. Why? (New to gts). Not with yarn. Running gts as executable installed through npm. |
Can you send me some steps to reproduce? I'm able to fresh install: $ yarn init
$ npx gts init
$ yarn lint Runs without any issues. |
I've abandoned my attempt to use gts at the moment. You can try my repo at https://github.com/linusjf/LearnSolidJS to see if you can recreate the problem. The only other thing you might need to know is that eslint was installed globally as ~v9.1. |
@linusjf I was able to get it running on your repo by: $ yarn
$ rm eslint.config.cjs
$ npx gts init
$ yarn lint
...works. |
If I can ask: What version of Node are you running? $ node -v |
Version 21.6.2
|
I'd rather use the new flat-config. Perhaps, once gts moves to the new config, I'll look at it again. I'm already using prettier on my files, anyway, via the |
Once we drop support for older versions of Node, I plan on migrating to the latest ESLint and will provide the flat config in the |
I've been struggling with this on gts 5.3.1 and here's what I've found. ESLint errors are silenced by the CLI. That's why this isn't reporting any error messages here. The specific error is
...which suggests that gts is expecting @tonycoco I think the reason you weren't able to reproduce this in #847 (comment) is that you have an $ yarn init
$ yarn set version 4.4.1
$ yarn add gts
$ yarn run gts init -y # Note that this produces an unrelated error
$ yarn run gts lint
version: 22
$ echo $?
1 One possible mitigation is to use the |
I confirmed on the Yarn Discord that the intended Yarn behavior is to provide access to dependency executables on PATH, and filed yarnpkg/berry#6485 to track this. |
The gts lint command is returning exit code 1 using yarn 4.0.2
Using npm:
The text was updated successfully, but these errors were encountered: