1.2.6 • Published 11 months ago
@gcoguiec/stylelint-config v1.2.6
Table of Contents
Getting Started
Install
pnpm add -D stylelint stylelint-order stylelint-scss @gcoguiec/stylelint-configConfigure
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 --fixLicense
This project is licensed under BSD 2-Clause.