yjrcli-env

1.5.0 • Public • Published

介绍

此包为 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;

Readme

Keywords

Package Sidebar

Install

npm i yjrcli-env

Weekly Downloads

1

Version

1.5.0

License

ISC

Unpacked Size

6.24 kB

Total Files

5

Last publish

Collaborators

  • yanjingrui20220216