@bdlite/fe-lint
一个包含 prettier,eslint,stylelint 的配置文件合集
A collection of configuration files containing prettier, eslint, stylelint
Use
in .eslintrc.js
module.exports = {
extends: [require.resolve('@bdlite/fe-lint/lib/eslint')],
rules: {
// your rules
},
};
in .eslintrc
{
extends: [require.resolve('@bdlite/fe-lint/lib/eslint')],
rules: {
// your rules
},
};
in .stylelintrc.js
module.exports = {
extends: [require.resolve('@bdlite/fe-lint/lib/stylelint')],
rules: {
// your rules
},
};
in .prettierrc.js
const feLint = require('@bdlite/fe-lint');
module.exports = {
...feLint.prettier,
};
tips
治理和雷达接入的时候需要把package.json内依赖的所有npm包都复制一份到项目根目录,否则yarn安装的时候没有安装到项目根目录的node_modules内,怀疑是别的包也依赖相同的包,并且版本冲突导致的