-
Notifications
You must be signed in to change notification settings - Fork 8
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
Stylelint could not find "stylelint-use-nesting" #18
Comments
Maybe because the rule name is Can you share your config? |
My .stylelintrc.json: {
"extends": [
"stylelint-config-standard",
"stylelint-prettier/recommended"
],
"plugins": [
"stylelint-declaration-strict-value",
"stylelint-value-no-unknown-custom-properties",
"stylelint-media-use-custom-media",
"stylelint-use-nesting",
"stylelint-order",
],
"rules": {
{some rules...}
"csstools/media-use-custom-media": "always",
"csstools/use-nesting": "always",
{some rules...}
}
} I don't think it's about the rule name because as you can see stylelint-media-use-custom-media and its rule csstools/media-use-custom-media has same naming convention and it's working well. I found that the error disappears and plugin starts working after refactoring "exports" in the plugin package.json from this:
to this: I think the exports might be unnecessarily conditional because:
|
Good catch! I'll fix that later today |
@tomekpiwowar I've completely remove the exports field. ![]() Can you verify that everything is now fixed on your end? |
@romainmenke I just tested the package after your update and everything works properly. Thank You! |
I've installed the latest version of plugin (5.1.0), expecting it to solve the problem described in this PR #17 , however now I got an error after running
yarn stylelint
:Error: Could not find "stylelint-use-nesting". Do you need to install the package or use the "configBasedir" option?
The text was updated successfully, but these errors were encountered: