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