-
Notifications
You must be signed in to change notification settings - Fork 11
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
Unknown word (CssSyntaxError)stylelint(CssSyntaxError) #35
Comments
Thank you for your feedback. In version 0.57, I upgraded the internal stylelint version to 15 in the extension and made it compatible with 16, so there may be some differences. I suggest you use the |
@hex-ci it just doesn't make any sense. All jsx, tsx files are scanned (not styles) and error. Please take a look at what can break it and try to fix. Thanks in advance. |
Please use |
if I don't have local configuration. Where this one should be added? |
The reason for these problems is that I upgraded the version of stylelint inside the extension. Normally, you should use the stylelint in node_modules in the project, and it is best not to use the stylelint inside the extension. Because the extension can only have a fixed version of stylelint built-in, it may not be suitable for everyone. If I were to go without any local stylelint, then I would have to downgrade the stylelint inside the extension, but stylelint 16 and later versions will become increasingly incompatible and the problem will never go away. Therefore, the best solution is to use local stylelint. |
You can't use very old stylelint forever, which is also bad for development. |
In addition, you can also exclude files that do not require lint by configuring the For files such as vue and html, you may also need a configuration similar to this in the overrides: [
{
files: ['**/*.{vue,html}'],
customSyntax: 'postcss-html',
},
], You need to install |
In fact, the usage is similar to |
I'm getting the same error for both TS and TSX files. Should I ignore them? |
yes,ignore them. OR use useLocal option, then install stylelint v13 |
I am also having this problem since updating to stylelint-plus v0.57.0. Problem goes away if I install the previous version v0.56.6. Will this bug be fixed soon? |
not able to downgrade to stylelint v13 please help? |
Downgrading is not a good idea. Because the latest version of stylelint is now v16, v17 may come soon. We can't always use a very old version of stylelint. If you want to use an old version of stylelint, please turn on the |
Downgrading is not a good idea. Because the latest version of stylelint is now v16, v17 may come soon. We can't always use a very old version of stylelint. If you want to use an old version of stylelint, please turn on the |
what actually is useLocal and where to use it, can you provide reference to any docs? I found it in stylelint-plus.. |
Install stylelint v13 in your project root directory: |
I have stylelint@14 and useLocal is enabled and I'm still getting this error. |
You must use stylelint v13, or use v14 or higher and add the ignore configuration, because stylelint v14 and higher does this. |
a new issue occurs on every code file, whether it is simple boilerplate code or complex code, the issue is
"Unknown word (CssSyntaxError)stylelint(CssSyntaxError)"
The text was updated successfully, but these errors were encountered: