1.0.1 • Published 2 years ago

@sumdoo/stylelint-config v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

@sumdoo/eslint-config

参考文档 stylelint 拟定的规则

用法


安装

pnpm add -D @sumdoo/stylelint-config

配置

// .stylelintrc
{
    "extends": "@sumdoo/stylelint-config"
}

为 package.json 添加脚本

例如:

{
    "scripts": {
        "lint": "stylelint src/**/*.css src/**/*.scss",
        "lint:fix: "stylelint src/**/*.css src/**/*.scss --fix"
    } 
}