-
Notifications
You must be signed in to change notification settings - Fork 772
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
stock eslint support #3177
stock eslint support #3177
Conversation
That's always worked for me, but I might be the only one. Let's keep |
This is great! |
Publishing the eslint plugin on npmjs should allow that I think. |
What options are those? |
The options I see in
|
I could do that but I can imagine Zotero would rather keep this under Zotero control. |
What was "should allow that" referring to? |
Linting on feature branches. But maybe I misunderstood - I thought publishing it would make it easier to lint on local clones, but now I'm not sure why tbh. What was it that you can't do now that you want to be able to do on feature branches? |
Right, but Scaffold passes |
(Sorry if I'm derailing the PR -- please let me know if you want me to move this to a separate issue):
If I try to run the linter locally while I'm on any branch other than master it errors out. So in my local fork (picking one random generally applicable example):
produces
(followed by a stack trace). I assumed this was a general issue? It means I have to do some awkward git-gymnastic when I want to re-lint work on a translator that's in any branch. This is on Windows, in case that matter. |
|
Should work now, and |
should make vscode-ran eslint fixes that is. But untested. I hardly ever use vscode. |
OK, great. I forgot that in Z7 we no longer use |
Thanks! |
It seems the lint job fails now though?
|
There's just nothing to lint for a PR like yours that doesn't touch translators. Should be fixed to exit gracefully, though. |
Is this supposed to work if more than one translator has been modified? I have 2 modified files in one of my PRs and there is an error in the lint check that I don't remember seeing before: https://github.com/zotero/translators/actions/runs/7350138469/job/20011290416?pr=3206 |
|
Shouldn't |
That's #3211 which is now fixed. |
This PR does a few things:
eslint
, making theteslint
wrapper superfluous. I think this should also makesvscode
-raneslint
work, but I have not tested thisespree
rather than using a regex (this is what failed when I was regex-searching for the header)eslint
rules into the linted code, is now relegated to the processor, making for much more maintainable code, and finallylinebreak-style
test, which started all of this