Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/jtsang4/stylelint-config
- Owner: jtsang4
- Created: 2022-02-09T05:38:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-07T07:48:49.000Z (over 2 years ago)
- Last Synced: 2024-10-11T16:50:59.045Z (about 1 month ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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