# stylelint-config-custom-chl

> 依据个人习惯定制的stylelint配置

Latest version **1.2.0** (published 2023-10-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install stylelint-config-custom-chl
pnpm add stylelint-config-custom-chl
yarn add stylelint-config-custom-chl
bun add stylelint-config-custom-chl
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2023-10-10 |
| First published | 2022-03-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | minichen |
| Maintainers | minichen |
| Keywords | stylelint, stylelint-config, custom-chl |

## Links

- npm: https://www.npmjs.com/package/stylelint-config-custom-chl
- Repository: https://gitee.com/happychl/stylelint-config-custom-chl
- Issues: https://gitee.com/happychl/stylelint-config-custom-chl/issues
- npm.io page: https://npm.io/package/stylelint-config-custom-chl

## Dependencies (6)

- [stylelint-scss](https://npm.io/package/stylelint-scss.md) ^4.2.0
- [stylelint-order](https://npm.io/package/stylelint-order.md) ^5.0.0
- [stylelint-config-prettier](https://npm.io/package/stylelint-config-prettier.md) ^9.0.3
- [stylelint-config-standard](https://npm.io/package/stylelint-config-standard.md) ^24.0.0
- [stylelint-config-recess-order](https://npm.io/package/stylelint-config-recess-order.md) ^3.0.0
- [stylelint-declaration-block-no-ignored-properties](https://npm.io/package/stylelint-declaration-block-no-ignored-properties.md) ^2.5.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2023-10-10
- 1.1.3 — 2022-05-27
- 1.1.2 — 2022-04-11
- 1.1.1 — 2022-04-11
- 1.1.0 — 2022-03-13
- 1.0.1 — 2022-03-13
- 1.0.0 — 2022-03-13

## README

# stylelint-config-custom-chl

> 依据个人习惯定制的 stylelint 配置

## 安装

```bash
yarn add stylelint-config-custom-chl -D

# 如果未安装stylelint，需要安装stylelint
yarn add stylelint -D

# 特殊类型文件需要安装postcss以及相应的postcss插件
yarn add postcss -D

# .scss
yarn add postcss-scss -D

# .less
yarn add postcss-less -D

# .vue 或 .html
yarn add postcss-html -D
```

## 配置

### .stylelintrc.js

```js
module.exports = {
  extends: ['stylelint-config-custom-chl'],
};
```

### settings.json - vscode

```json
{
  // 防止编辑器内置linter与stylelint插件冲突
  "css.validate": false,
  "less.validate": false,
  "scss.validate": false,

  // stylelint配置
  "stylelint.enable": true,
  "stylelint.validate": ["css", "scss", "less", "vue", "html"],

  // 文件保存时自动修复
  "editor.codeActionsOnSave": {
    "source.fixAll.stylelint": true
  }
}
```

---
_Source: https://npm.io/package/stylelint-config-custom-chl · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
