@winner-fed/stylelint-config-win

CSS Style guide for winner fed

Usage no npm install needed!

<script type="module">
  import winnerFedStylelintConfigWin from 'https://cdn.skypack.dev/@winner-fed/stylelint-config-win';
</script>

README

stylelint-config-win

团队内部的stylelint配置

安装

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

依赖版本

stylelint ^13.6.1

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 >= 13.5.0