@7inch/stylelint-config 中文文档教程
@7inch/stylelint-config
Introduction
My stylelint config, it's friendly and works well with scss / tailwind / windicss / element plus/ vant.
Install
npm i stylelint prettier @7inch/stylelint-config -D
Usage
Config .stylelintrc.js
module.exports = {
extends: ["@7inch/stylelint-config"],
};
Config .stylelintignore
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.
更多
你可能也喜欢
- @0x/contracts-coordinator 中文文档教程
- @0x2e757/wrappers 中文文档教程
- @0x4447/hotpepper 中文文档教程
- @100tal-seg/seg-react 中文文档教程
- @11ty/eleventy-plugin-inclusive-language 中文文档教程
- @12core/eslint-config-12core 中文文档教程
- @1amageek/react-ui 中文文档教程
- @1devndogs/default-token-list 中文文档教程
- @1hive/apps-conviction-voting 中文文档教程
- @52cik/look-cli 中文文档教程