stylelint-config-loki 配置
使用帮助
-
配置私有 npm 仓库, 传送门
-
安装
yarn add stylelint-config-loki -D
-
在项目的根目录下添加配置文件
stylelint.config.js
- 在
package.json
里添加脚本, 请确保根目录存在stylelint.json
- 检查
package.json/devDependencies
, 以下依赖统一在stylelint-config-loki
管理, 如果存在需要移除
stylelint
stylelint-config-css-modules
stylelint-config-rational-order
stylelint-config-standard
stylelint-declaration-block-no-ignored-properties
stylelint-order