yjrcli-env
v1.5.0
Published
Provides devDependencies to yjr-cli
Downloads
6
Readme
介绍
此包为 yjr-cli 生成的模板项目的开发环境依赖包
{
"devDependencies": {
"yjrcli-env": "*"
}
}
自定义 .eslintrc 和 .stylelintrc
.stylelintrc.cjs
// 自定义 "selector-max-id" 规则的值为 0
const { stylelintConfig } = require("yjrcli-env");
stylelintConfig.rules["selector-max-id"] = 0;
module.exports = stylelintConfig;
.eslintrc.cjs
// 自定义 "arrow-body-style" 规则的值为 "error"
const { eslintConfig } = require("yjrcli-env");
eslintConfig.rules["arrow-body-style"] = "error";
module.exports = eslintConfig;