xiaohe0601 / github@xiaohe0601 / gitee@xiaohe0601
# pnpm
pnpm add -D stylelint @xiaohe01/stylelint-config
# yarn
yarn add --dev stylelint @xiaohe01/stylelint-config
# npm
npm install -D stylelint @xiaohe01/stylelint-config
[!WARNING] Stylelint
16.13.0+
is now required
Create stylelint.config.mjs
in your project root
import { defineConfig } from "@xiaohe01/stylelint-config";
export default defineConfig();
Add script for package.json
, for example
{
"scripts": {
"stylelint": "stylelint **/*.{css,scss,html,vue}",
"stylelint:fix": "stylelint **/*.{css,scss,html,vue} --fix"
}
}
For more information, please refer to stylelint.
- MIT LICENSE