yiauto-project-rule
v0.1.0
Published
宜买车科技中心前端团队项目规范统一配置
Downloads
3
Maintainers
Readme
yiauto-project-rule
一个包含 prettier,eslint,githook 校验指令的配置文件合集
使用
安装
npm i yiauto-project-rule --save-dev
yarn add yiauto-project-rule -D
web 端
在 .eslintrc.js
module.exports = {
extends: [require.resolve('yiauto-project-rule/src/web/eslint')],
rules: {
// your rules
},
};
在 .prettierrc.js
const yiautoRule = require('yiauto-project-rule');
module.exports = {
...yiautoRule.web.prettier,
};
uni-app 小程序端
在 .eslintrc.js
module.exports = {
extends: [require.resolve('yiauto-project-rule/src/uni-app/eslint')],
rules: {
// your rules
},
};
在 .prettierrc.js
const yiautoRule = require('yiauto-project-rule');
module.exports = {
...yiautoRule.uniApp.prettier,
};