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

Allow unknown property names in :export block #960

Open
jkjustjoshing opened this issue Oct 17, 2018 · 1 comment
Open

Allow unknown property names in :export block #960

jkjustjoshing opened this issue Oct 17, 2018 · 1 comment

Comments

@jkjustjoshing
Copy link

I'm using CSS Modules with SCSS (via https://gatsbyjs.org). I'm using the CSS Modules :export feature to send my SCSS variables to Javascript:

:export {
    headerHeight: $header-height;
}

When I do this, I get a scss-lint error "Unknown property: 'headerHeight'".

I'd like the ability with scss-lint to use arbitrary property names within an :export block (possibly behind a rule toggle).

@jkjustjoshing
Copy link
Author

My current workaround is doing

:export {
    #{'headerHeight'}: $header-height;
}

but it's pretty ugly just to get around the linter rule.

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

No branches or pull requests

1 participant