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

Added rule for dollar-variable-first-in-block #372

Merged
merged 1 commit into from Mar 19, 2020
Merged

Added rule for dollar-variable-first-in-block #372

merged 1 commit into from Mar 19, 2020

Conversation

larsmunkholm
Copy link

This adds a dollar-variable-first-in-block rule that checks if variables are put first in a block (root and rules).

It can be set to ignore comments and imports, and make exceptions when variables are placed in root or inside an at-rule, function, mixin, if/else or for/each/while-loops.

This is my first contribution to stylelint-scss ... Please don't hesitate to let me know, if I'm doing anything wrong :)

@larsmunkholm larsmunkholm changed the title Added rule for dollarVariableFirstInBlock Added rule for dollar-variable-first-in-block Sep 18, 2019
@kristerkari
Copy link
Collaborator

I'm really sorry that I have not reviewed this and the other PR yet (been busy). I'll have a look at them when I can.

@larsmunkholm
Copy link
Author

No worries :) I'm not in a hurry

@DonGissel
Copy link

This looks pretty neat!

@larsmunkholm
Copy link
Author

Should I give up on this? 😅

@kristerkari kristerkari merged commit cbfee75 into stylelint-scss:master Mar 19, 2020
@kristerkari
Copy link
Collaborator

Should I give up on this?

No! Sorry that it took me so long :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants