-
-
Notifications
You must be signed in to change notification settings - Fork 50.7k
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
Add tool to fix Markdown ESLint errors automatically #945
Conversation
@@ -9,7 +9,7 @@ | |||
````jsx | |||
import { Alert } from 'antd'; | |||
|
|||
const onClose = function(e) { | |||
const onClose = function (e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个风格很讨厌啊~~~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好吧接受,反正写 function 的次数也在变少,而且不推荐写匿名函数。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
刚看到这个我还以为是改错了。。。然后确认了下规则。。。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add tool to fix Markdown ESLint errors automatically
主要是这两个 commit:
eslint-tinker 是刚才写的一个自动修复 Markdown 中 ESLint errors 的工具,�由于 antd 的 Markdown 比较多,相对就有点慢,所以就把它和 ESLint 自带的 fix 命令分开,不然写代码时会奔溃。。。
后续会继续优化。