Skip to content

gcoguiec/stylelint-config

@gcoguiec/stylelint-config


Version CI Status License


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.