Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Opinionated stylelint configs.
https://github.com/jtsang4/stylelint-config

Last synced: 8 days ago
JSON representation

Opinionated stylelint configs.

Awesome Lists containing this project

README

        

# @jtsang/stylelint-config

[![npm](https://img.shields.io/npm/v/@jtsang/stylelint-config?color=a1b858&label=)](https://npmjs.com/package/@jtsang/stylelint-config)

Opinionated stylelint configs.

## Usage

### Install

```bash
pnpm add -D stylelint @jtsang/stylelint-config
```

### Config `.stylelintrc`

```json
{
"extends": ["@jtsang/stylelint-config"],
"ignoreFiles": ["**/node_modules/**/*"]
}
```

### Config VS Code auto fix

Create `.vscode/settings.json`

```json
{
"prettier.enable": false,
"css.validate": false,
"scss.validate": false,
"less.validate": false,
"stylelint.validate": ["css", "scss", "less"],
"editor.codeActionsOnSave": {
"source.fixAll.stylelint": true
}
}
```

## License

MIT