易知微 lint 工具包( eslint 、prettier、stylelint )
使用:
- .eslintrc.js
module.exports = {
extends: [require.resolve('@easyv/ezv-lint/dist/eslint')],
rules: {
// your rules
},
};
- .stylelintrc.js
module.exports = {
extends: [require.resolve('@easyv/ezv-lint/dist/stylelint')],
rules: {
// your rules
},
};
- .prettierrc.js
const ezvLint = require('@easyv/ezv-lint');
module.exports = {
...ezvLint.prettier,
};