Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gcoguiec/stylelint-config

⚙️ A reusable stylelint configuration.
https://github.com/gcoguiec/stylelint-config

stylelint stylelint-config

Last synced: about 1 month ago
JSON representation

⚙️ A reusable stylelint configuration.

Awesome Lists containing this project

README

        

@gcoguiec/stylelint-config





Version


CI Status


License


## Table of Contents

- [Getting Started](#getting-started)
- [License](#license)

## Getting Started

### Install

```bash
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:

```js
// stylelint.config.cjs
module.exports = {
root: true,
extends: ['@gcoguiec/stylelint-config']
};
```

### (Optional) Add scripts to your `package.json` file

```json
{
"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`

```just
lint-scss *args:
pnpm stylelint "**/*.scss" {{args}}

lint-scss-fix:
@just lint-scss --fix
```

## License

This project is licensed under [BSD 2-Clause](https://spdx.org/licenses/BSD-2-Clause.html).