Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于Prettier与ESLint配合! #14

Open
syanbo opened this issue Mar 1, 2018 · 1 comment
Open

关于Prettier与ESLint配合! #14

syanbo opened this issue Mar 1, 2018 · 1 comment

Comments

@syanbo
Copy link

syanbo commented Mar 1, 2018

我刚刚看了eslintrc配置文件,想说一下一点误区。
想要Prettier格式化的代码与ESLint不冲突或者理想状态是偏向ESLint需要
eslint-config-prettier 来关闭所有可能引起冲突的规则
eslint-plugin-prettier 对比格式化前和用 Prettier 格式化后的代码,有不一致的地方就会报错
eslintrc 修改
extends: "prettier"
plugins: ["react", "jsx-a11y", "import", "prettier"]

@duheng
Copy link
Owner

duheng commented Mar 24, 2018

谢谢你的反馈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants