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

Update the stylelint rules to make sure they follow best practices #14

Open
5 tasks
ArekJanik opened this issue Apr 27, 2023 · 0 comments
Open
5 tasks
Assignees

Comments

@ArekJanik
Copy link
Member

ArekJanik commented Apr 27, 2023

  • Disallow functions like: color: color.adjust(#6b717f, $lightness: -20%);
  • Allow math.div
  • Detect shorthand properties, like background
  • Sort the block declaration like other declarations. Currently the background: { will be below all normal declarations as it is detected as a rule, not a declaration, eg:
padding: 0;
text-align: center;
background: {
  image: url("/assets/images/oops.jpg");
  position: center;
}
  • Selector & should throw an error, as the & is not needed when followed by a space (often mistakenly used as & >)
@ArekJanik ArekJanik self-assigned this Apr 27, 2023
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