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

ci(lint): add autocorrect #155

Closed
wants to merge 10 commits into from
Closed

ci(lint): add autocorrect #155

wants to merge 10 commits into from

Conversation

lw5577
Copy link
Contributor

@lw5577 lw5577 commented Nov 13, 2023

added autocorrect in order to enhance the linting process for Chinese language content in the codebase

package.json Outdated
@@ -13,5 +13,8 @@
"devDependencies": {
"markdownlint-cli2": "^0.6.0",
"zhlint": "^0.7.1"
},
"dependencies": {
"autocorrect-node": "^2.8.4"
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

暂时先只校验 .md 文件吧

if: steps.changed-markdown-files.outputs.any_changed == 'true'
uses: actions/setup-node@v3
with:
node-version: 18
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

20

@lw5577 lw5577 closed this Nov 14, 2023
@lw5577 lw5577 deleted the ci/autocorrect-lint branch November 14, 2023 07:51
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

Successfully merging this pull request may close these issues.

2 participants