@7inch/stylelint-config
Introduction
My stylelint config, it's friendly and works well with scss / tailwind / windicss / element plus/ vant / wechat miniprogram.
Install
npm i stylelint prettier @7inch/stylelint-config -D
Usage
.stylelintrc.js
Config module.exports = {
extends: ["@7inch/stylelint-config"],
};
.stylelintignore
Config dist
public
Add script for package.json
{
"scripts": {
"stylelint": "stylelint \"**/*.{vue,css,scss}\" --fix"
}
}
Config VSCode auto fix
Create .vscode/settings.json
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.stylelint": true
}
}
Checkout stylelint for more usage details.
License
Made with