qy-eslint
v1.0.6
Published
prettier eslint typescript vue
Downloads
12
Maintainers
Readme
eslint 与 prettier 冲突
以下插件都对应了 eslint-config-prettier 中的一个配置文件
- @typescript-eslint/eslint-plugin => prettier/@typescript-eslint.js
- eslint-plugin-babel => prettier/babel.js
- eslint-plugin-flowtype => prettier/flowtype.js
- eslint-plugin-prettier => prettier/prettier.js
- eslint-plugin-react => prettier/react.js
- eslint-plugin-standard => prettier/standard.js
- eslint-plugin-unicorn => prettier/unicorn.js
- eslint-plugin-vue => prettier/vue.js
.eslintrc.cjs
module.exports = {
extends: [require.resolve('qy-eslint/dist/eslint')],
globals: {},
rules: {},
}
.prettierrc.js
module.exports = {
...require('qy-eslint').prettier,
}