-
Notifications
You must be signed in to change notification settings - Fork 7
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
ci(lint): add autocorrect
#155
Conversation
package.json
Outdated
@@ -13,5 +13,8 @@ | |||
"devDependencies": { | |||
"markdownlint-cli2": "^0.6.0", | |||
"zhlint": "^0.7.1" | |||
}, | |||
"dependencies": { | |||
"autocorrect-node": "^2.8.4" |
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.
这个应该在 devDependencies
里
nginx.conf
Outdated
@@ -6,7 +6,7 @@ server { | |||
location / { | |||
root /web/www; # 服务默认启动目录 | |||
index index.html; # 默认访问文件 | |||
# try_files $uri /index.html; # 防止浏览器刷新后,页面404 | |||
# try_files $uri /index.html; # 防止浏览器刷新后,页面 404 |
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.
暂时先只校验 .md
文件吧
This reverts commit 64dc6bc.
.github/workflows/lint.yml
Outdated
if: steps.changed-markdown-files.outputs.any_changed == 'true' | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 |
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.
20
added autocorrect in order to enhance the linting process for Chinese language content in the codebase