Skip to content

Ignore custom-elements for selector-type-no-unknown #21

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

Merged
merged 1 commit into from
Jun 20, 2025

Conversation

scottsb
Copy link
Contributor

@scottsb scottsb commented Jun 20, 2025

This PR brings the ruleset into consistency with the official base stylelint-config-recommended ruleset, which ignores custom-elements:

https://github.com/stylelint/stylelint-config-recommended/blob/f862a67da107449c3e7ccc8ffd034fb28dd789af/index.js#L47C14-L47C31

If stylelint-config-css-modules is used in conjunction, it overrides that base rule, dropping the ignoring of custom-elements, in turn requiring a local override to bring it back. Since there's no reason to differ from the standard ruleset to support CSS modules, it's best to align.

Copy link
Owner

@pascalduez pascalduez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the Pull Request!

@pascalduez pascalduez merged commit ecdab5f into pascalduez:main Jun 20, 2025
1 check passed
@pascalduez
Copy link
Owner

Available as of [email protected].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants