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

Check for custom properties #254

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Kagaminara
Copy link

Hello !

We wanted to be able to check for unused SASS variables as well as CSS custom properties, so that none of those are missed out.

This MR adds checks for CSS custom properties (--myVar syntax) to find-unused-sass-variables, and also updates the existing tests to add some custom properties in the batch.

The script usage stays the same, and custom properties can now be passed in the --ignore argument, like so:

./bin/cli.js tests/ --ignore "$a,$b,--a,--b"

Please let me know what you think about it, and if you see other possible improvements on this take !

@Kagaminara Kagaminara force-pushed the check-for-custom-properties branch from ac52556 to 4932e94 Compare December 7, 2023 14:19
@XhmikosR
Copy link
Owner

XhmikosR commented Feb 2, 2024

Hey, @Kagaminara, thanks for the PR!

Unfortunately, the button to update your PR is not enabled. Please allow edit from maintainers.

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