Skip to content

Don't warn for unknown properties inside an :export block#137

Merged
octref merged 1 commit intomicrosoft:masterfrom
kristerkari:css-modules-export
Jan 2, 2019
Merged

Don't warn for unknown properties inside an :export block#137
octref merged 1 commit intomicrosoft:masterfrom
kristerkari:css-modules-export

Conversation

@kristerkari
Copy link
Contributor

@kristerkari kristerkari commented Dec 10, 2018

Currently custom properties inside a CSS modules :export block are reported as unknown. The properties inside :export are not CSS properties - they are custom properties that are exported from the CSS/SCSS file to Javascript (e.g. variables).

This PR adds a simple check to see if the selector is :export, and skips the whole checking for unknown properties in that case.

Please enable Diff settings > hide whitespace changes from Github's UI when reviewing the PR.

fixes #103

@msftclas
Copy link

msftclas commented Dec 10, 2018

CLA assistant check
All CLA requirements met.

@kristerkari
Copy link
Contributor Author

Anyone to review this @aeschli @octref ?

@octref octref added this to the December 2018 milestone Dec 16, 2018
@octref
Copy link
Contributor

octref commented Dec 16, 2018

Sorry both of us was on vacation. I'll review it in December.

@kristerkari
Copy link
Contributor Author

Thanks! Have nice holidays

@octref
Copy link
Contributor

octref commented Jan 2, 2019

LGTM. Thanks for your contribution!

@octref octref merged commit d72b06f into microsoft:master Jan 2, 2019
@kristerkari kristerkari deleted the css-modules-export branch January 2, 2019 20:53
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.

scss: Unknown property when using :export, CSS Modules

4 participants