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

Rule to enforce variables to be in separate file? #952

Open
jluisgarcia opened this issue Jun 9, 2018 · 0 comments
Open

Rule to enforce variables to be in separate file? #952

jluisgarcia opened this issue Jun 9, 2018 · 0 comments

Comments

@jluisgarcia
Copy link

Question
I used to have a setting that enforced to have a separate file for variables. So, I had to @import these variables in order to have no errors after linting. But, unfortunately, I lost this setting.
Does anyone know this rule?

This is a snippet of main.scss file
When using my old setting, this would throw an error. Just because I am using a variable in line 4 that I have just defined in the same "main.scss" file, in line 1.

1 $bg-color: rgb(239, 239, 245);
2
3 body {
4 background-color: $bg-color;
5 }

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