Skip to content
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

Add no-unknown-custom-properties rule #6731

Merged

Conversation

jameschensmith
Copy link
Contributor

Summary

Adds new rule, no-unknown-custom-properties, which disallows unknown custom properties. Initial implementation is to consider custom properties defined within the same source.

Relates to #6361. Could close the issue if a new one is created to track a potential importFrom option, or a resolver option once #4088 is addressed.

@changeset-bot
Copy link

changeset-bot bot commented Mar 24, 2023

🦋 Changeset detected

Latest commit: fa21969

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
stylelint Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jameschensmith jameschensmith changed the title Add no-unknown-custom-properties Add no-unknown-custom-properties rule Mar 24, 2023
@jameschensmith jameschensmith force-pushed the rules/no-unknown-custom-properties branch from 7db1033 to ff1d4f8 Compare March 24, 2023 19:42
Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

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

@jameschensmith Thanks for the pull request! The code and doc look good to me, though I just left a trivial suggestion.

lib/rules/no-unknown-custom-properties/index.js Outdated Show resolved Hide resolved
@jameschensmith jameschensmith force-pushed the rules/no-unknown-custom-properties branch from ff1d4f8 to fa21969 Compare March 28, 2023 00:35
Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM 👍🏼

(I'll merge this PR tomorrow if nobody comments)

@mattxwang mattxwang mentioned this pull request Mar 29, 2023
@ybiquitous ybiquitous merged commit 07ef259 into stylelint:main Mar 29, 2023
14 checks passed
@jameschensmith jameschensmith deleted the rules/no-unknown-custom-properties branch March 29, 2023 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants