-
Notifications
You must be signed in to change notification settings - Fork 13
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
Getting lint error in latest version of language-tags #15
Comments
Hi manju, thanks for filing. I'm not really sure why this is an issue because static class fields are part of the ECMAScript standard. It seems that jshint is missing support for them even though they're standard. See: jshint/jshint/issues/3139 In the meantime it might make sense to exclude |
Any update for it? How to resolve it? |
@manju-s did you resolve the issue? |
I added an eslint config block to the package config file and bumped the version to 1.0.7 on npm. Can you retest? I no longer get any errors with |
I guess that's because your linter isn't picking up the block in Shouldn't your linter configuration be ignoring the Alternatively, if you also want to lint Unless you do that, there's nothing more I can do to fix this issue. |
Yes Matt, node_modules is added in eslintignore but for some reason it isn't working. Anyway, thanks for the help, please update if any additional fixes are made. |
https://github.com/cnpm/bug-versions/pull/217/files language-tags 1.0.6 and 1.0.7 cannot work on node version like 1.0.5. Is it a better way to release a major version? |
Which nodejs version are you saying it doesn’t work in? |
@mattcg this is a breaking change in a patch version. v1.0.5 works in node 6; v1.0.6 does not (for example, becuase of the spread operator - babel could fix this for you). This breaks eslint-plugin-jsx-a11y. Can you please publish a v1.0.8 that restores these node versions, and if you like, publish a v2 that drops them? |
ping @mattcg; there's still a breaking change in a patch version in v1.0.6 and v1.0.7. |
Wait, why would anyone be running node 6? |
All of my packages support as far back as possible, most down to node 0.4, but that’s irrelevant - semver applies to engine support. If you want to drop node 6 in a major, that’s fine, but not in a patch. |
Makes sense. How do you recommend to fix this? |
I suspect if you adjust your babel config to target the lowest version of node that language-tags v1 supports - which since it lacks an engines declaration, is basically 0.4 or 0.6 - that it'd Just Work without any source code changes. |
@mattcg are you interested in a PR for this? eslint-plugin-jsx-a11y is still pinned to v1.0.5. |
Yes. For sure!On 12 Aug 2023, at 00:35, Jordan Harband ***@***.***> wrote:
@mattcg are you interested in a PR for this? eslint-plugin-jsx-a11y is still pinned to v1.0.5.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hey Matt,
After the release of version 1.0.6 eslint is picking up a Syntax error which is casuing our build to fail (screenshot below).
When i lock the version to 1.0.5, the error goes away. Can you please look into it, or suggest a fix if it can be done from the consumer side.
Thanks
The text was updated successfully, but these errors were encountered: