1.2.4 • Published 9 days ago
@gcoguiec/stylelint-config v1.2.4
Table of Contents
Getting Started
Install
pnpm add -D stylelint stylelint-order stylelint-scss @gcoguiec/stylelint-config
Configure
Add a stylelint.config.cjs
file at the project root with the following configuration:
// stylelint.config.cjs
module.exports = {
root: true,
extends: ['@gcoguiec/stylelint-config']
};
(Optional) Add scripts to your package.json
file
{
"scripts": {
"lint:scss": "stylelint \"**/*.scss\"",
"lint:scss:fix": "pnpm lint:scss --fix"
}
}
Note: you can replace pnpm
by your favorite package manager instead.
(Optional) Add the tasks to your justfile
lint-scss *args:
pnpm stylelint "**/*.scss" {{args}}
lint-scss-fix:
@just lint-scss --fix
License
This project is licensed under BSD 2-Clause.