stylelint-config-sweet
v11.0.0
Published
Stylelint extendable config for the most sweet-ass CSS and Sass. 🤙🏼
Readme
stylelint-config-sweet
Stylelint extendable config for the most sweet-ass CSS and Sass. 🤙🏼
Installation
npm i -D stylelint-config-sweetUsage
As soon as you've installed the package, you can extend from it. To do that, create your config file, and add the following line:
/** @type {import("stylelint").Config} */
export default {
extends: "stylelint-config-sweet"
};How will my code look when using this?
Sweet, man. That's the point. On a more serious note though: It mostly enforces consistency, even though it may not look like it the first few moments. It will make your code feel more lightweight and nudge you towards using more modern APIs and good practices, while maintaining readability and keeping complexity down.
Good to know
If you're experiencing performance issues, or just want to boost the speed of linting, you can enable Stylelint's built-in caching:
/** @type {import("stylelint").Config} */
export default {
cache: true,
extends: "stylelint-config-sweet"
};Don't forget to add .stylelintcache to your .gitignore!
