2.0.1 • Published 2 years ago

@winner-fed/stylelint-config-win v2.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
2 years ago

stylelint-config-win

团队内部的stylelint配置

安装

yarn add @winner-fed/stylelint-config-win -D

依赖版本

stylelint ^14.11.0

Tips:如果项目中没有安装此依赖包或者版本不一致,请安装或者升级。

使用

  • 在你的项目的根目录下创建一个 stylelint.config.js 文件,并将以下内容复制进去:
{
  extends: "@winner-fed/stylelint-config-win"
}
  • 项目目录下的 package.json 添加检测指令,举个例子
{
 ...
 "scripts": {
+    "lint:style": "stylelint \"src/**/*.{vue,less,postcss,css,scss}\" --fix --cache --cache-location node_modules/.cache/stylelint/",
 }
 ...
}

引用

环境

Node.js >= 8

stylelint >= 14.11.0