-
-
Notifications
You must be signed in to change notification settings - Fork 929
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
nullishCoalescingOperator and optionalChaining missing parser plugin #4473
Comments
I've just noticed that
|
Do not use /cc @stylelint/core any ideas about that, we other have issues about it |
I see. That's news to me. Thanks! - I'll give that a try |
Do these docs need to be updated then? https://www.styled-components.com/docs/tooling#stylelint |
Closing this, as it's not related to stylelint itself. |
I think that this issue should be reopened. Stylelint documentation at https://stylelint.io/user-guide/processors says
When I remove stylelint-processor-styled-components it causes a new lot of new problems. When I try the solution from dimitropoulos, it also causes a lot of new problems. /* stylelint-disable-next-line */ also didn't fix the problem for me. I'm using styled-components with react and typescript (tsx files), latest versions of all. |
I'm running into the same problems as @jmjpro |
Upgrading to Same situation as others: adding the plugins caused more errors, upgrading stylelint and removing the styled-components processor caused more errors, disable comments didn't work. Everything seems fine now. Other relevant versions are:
|
The Nullish Coalescing Operator was recently added to JavaScript and TypeScript. Upon updating my project, stylelint returned an error:
the input file, in this case, was:
and the stylelint config was:
After quite a long time debugging, I was able to determine that this is actually an issue with
stylelint-processor-styled-components
:styled-components/stylelint-processor-styled-components#252
styled-components/stylelint-processor-styled-components#289
The resolution, if you are hitting this problem with
stylelint-processor-styled-components
or any other processor, is to add a processor option forparserPlugins
as such:Ideally,
stylelint-processor-styled-components
will add it themselves soon (since, it's definitely a part of the language going forward and thus not experimental).I wanted to add this issue so someone searching this repo for what's returned in this error will have some steps of resolution.
If you, the maintainers and contributors to this project have nothing more to add please feel free to close this issue.
The text was updated successfully, but these errors were encountered: