-
Notifications
You must be signed in to change notification settings - Fork 195
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
Updating ESLint plugin version #2819
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @wjrosa. The changes look good to me and npm run lint:js
passes perfectly. I have added two little recommendations but those are not a blocker.
… avoid conflicts with upcoming changes
it seems the
|
Yes, I just tried and got the same. Do you think we can refactor using the suggestion from the warning? |
I don't think so. I left a message in the PR about it
|
I see. So I guess we need to stick with that rules-ignoring lines for a while then :( |
@wjrosa I was wondering why the rule is still present in It seems Running
Notice that it's picking up the config file from the Not sure if |
@wjrosa I've forced npm install @wordpress/eslint-plugin@^11.0.0 -D and it loaded the correct rules this time:
Now it reports the
It will also report a lot more The problem with the approach I've used is that if Maybe there's a way to consolidate the dependencies on our end or maybe we could update |
@asumaran Another option would be to create a specific version for us of |
@wjrosa I don't know. But I think the way ESLint is currently set up in our repo is not correct. |
@Mayisha is this something you would have more information about? |
@wjrosa my bad that I did not notice that it's still loading an older version of I checked the versions in This might happen because of a few reasons, like the load order of the packages, or the dependency resolution algorithm of npm which determines the versions of packages to install, or We can consider a few options here.
All of the changes require fixing a number of |
@Mayisha, thanks for your input here; it is very valuable! Yeah, it is probably not worth it doing it now. We can get back to this later. |
Fixes #2270
Changes proposed in this Pull Request:
This PR just updates the current version of
@woocommerce/eslint-plugin
package. This is to put back some of the rules we disabled here due to constant warnings. But, to avoid file conflicts with coming PRs (due to new rules alerts), some rules are being disabled temporarily.Testing instructions
npm run lint:js
changelog.txt
andreadme.txt
(or does not apply)Post merge