sass-guidelines | Guidelines for writing sane , maintainable and scalable Sass | Style Language library
kandi X-RAY | sass-guidelines Summary
kandi X-RAY | sass-guidelines Summary
An opinionated styleguide for writing sane, maintainable and scalable Sass.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sass-guidelines
sass-guidelines Key Features
sass-guidelines Examples and Code Snippets
Community Discussions
Trending Discussions on sass-guidelines
QUESTION
I have defined a mixin
for adding styles to an element. This compiles perfectly but is throwing an error when I run stylelint
over it.
My stylelint
configuration is as follows:
ANSWER
Answered 2020-Apr-19 at 16:00The CssSyntaxError is thrown because the SugarSS syntax does not support interpolation, i.e. #{element}
.
You can either:
- write in Sass
- write in SugarSS and use Sass-like PostCSS plugins
It's not possible to do both.
stylelint supports Sass, SCSS and SugarSS out-of-the-box. You don't need to use the --custom-syntax
flag.
If you want to continue to write in Sass, you should remove the --custom-syntax sugarss
flag from your stylelint command (and quote your glob), like so:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sass-guidelines
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page