stylelint-config-universal-code
v1.0.8
Published
📦 Stylelint configuration for fix errors before they cause problems in your code. It can also help you to develop good coding habits that will make your code easier to maintain in the long run.
Maintainers
Readme
A modular, production-ready Stylelint configuration designed for high-performance CSS and SASS workflows. It enforces strict property ordering and prevents common architectural errors in modern web applications.
-
Stylelint- Stylelint rules to prevent errors and enforce best practices in your CSS. -
Sass- Rules specifically designed for Sass syntax. -
Stylistic- Keep your CSS clean and readable. -
Order- Organize your CSS for easy maintenance.
- node >= 18.16.0
- bun >= 1.1.0
- stylelint >= 15.5.0
Run this command to install eslint and the plugin.
bun i -D stylelint stylelint-config-universal-codepnpm i -D stylelint stylelint-config-universal-codeyarn i -D stylelint stylelint-config-universal-codenpm i -D stylelint stylelint-config-universal-codeTo use this plugin put in your repositorie you need to create an .stylelintrc file and add this lines of code.
{
"extends": "stylelint-config-universal-code"
}Extra settings that can be added in the same file.
{
"extends":
[
// This specifies that the configuration extends the "stylelint-config-universal-code" rules.
"stylelint-config-universal-code",
// This specifies that the configuration also extends the sass rules
"stylelint-config-universal-code/sass"
],
// Extra configuration can be done by stylelint see more in https://stylelint.io/user-guide/configure
}