Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Prevent @value to create an :export #5

Open
EECOLOR opened this issue Oct 26, 2019 · 3 comments
Open

Prevent @value to create an :export #5

EECOLOR opened this issue Oct 26, 2019 · 3 comments

Comments

@EECOLOR
Copy link

EECOLOR commented Oct 26, 2019

Would you be willing to add a configuration option that prevents an @value to generate an :export rule?

@alexander-akait
Copy link
Member

Sorry for delay, why do you need this?

@EECOLOR
Copy link
Author

EECOLOR commented Sep 22, 2020

We use @value and :export for different purposes. @value to create a variable for the current file to be used and :export to export things to be used by javascript.

We require our developers to use :export when they intent to expose the value. The :export statement clearly communicates it is used outside of css. The side effect of @value complicates this clarity because it exports as well.

@alexander-akait
Copy link
Member

@EECOLOR feel free to send a PR with a new option for this

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

No branches or pull requests

2 participants