Skip to content

Commit

Permalink
style: update linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Feb 2, 2024
1 parent 22ea3d0 commit 8cf21ff
Show file tree
Hide file tree
Showing 12 changed files with 77 additions and 78 deletions.
5 changes: 3 additions & 2 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ extends:
- plugin:prettier/recommended

ignorePatterns:
- '!.vuepress/**'
- .vuepress/.cache/**
- .vuepress/.temp/**
- '**/dist/**'
- '**/node_modules/**'
- .cache/**
- .temp/**
- example/**

plugins:
Expand Down
32 changes: 32 additions & 0 deletions .markdownlint-cli2.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
export default {
config: {
default: true,
MD003: {
style: 'atx',
},
MD004: {
style: 'dash',
},
MD013: false,
MD024: {
siblings_only: true,
},
MD033: {
allowed_elements: [
'br',
'kbd',
'script',
'span',
'BiliBili',
'MigrationTool',
'YouTube',
],
},
MD035: {
style: '---',
},
MD040: false,
MD046: false,
},
ignores: ['**/node_modules/**', '**/__tests__/**', 'CHANGELOG.md', 'LICENSE'],
};
29 changes: 0 additions & 29 deletions .markdownlint.json

This file was deleted.

8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<img src="./assets/logo.png" width="200" align="right" />
<!-- markdownlint-disable MD033 MD041 -->

# Waline
<img src="./assets/logo.png" width="200" align="right" alt="Waline logo" />

# Waline

![Author](https://img.shields.io/badge/author-lizheming,%20Mr.Hope-blue?style=for-the-badge) ![License](https://img.shields.io/github/license/walinejs/waline?style=for-the-badge) [![qq](https://img.shields.io/badge/qq-waline交流群-f75137?logo=TencentQQ&style=for-the-badge)](https://jq.qq.com/?_wv=1027&k=bKoVBppG) [![telegram](https://img.shields.io/badge/telegram-walinejs-2ca5e0?logo=telegram&style=for-the-badge)](https://t.me/walinejs)

Expand Down Expand Up @@ -71,7 +73,7 @@ We **really** welcome you to contribute to waline!
You can contact me through [discussions](https://github.com/walinejs/waline/discussions). Join our [telegram](https://t.me/walinejs) group or scan [QQ group](https://qm.qq.com/cgi-bin/qm/qr?k=rPZvq_EBfwQa6QZX7sToVlhH49c6ed0R&jump_from=webapi) qrcode to communicate about waline!

<a href="https://qm.qq.com/cgi-bin/qm/qr?k=rPZvq_EBfwQa6QZX7sToVlhH49c6ed0R&jump_from=webapi" target="_blank">
<img src="./assets/qqgroup.jpg" width="300" />
<img src="./assets/qqgroup.jpg" width="300" alt="qq group qrcode" />
</a>

## License
Expand Down
6 changes: 4 additions & 2 deletions README_CN.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<img src="./assets/logo.png" width='200' align="right" />
<!-- markdownlint-disable MD033 MD041 -->

<img src="./assets/logo.png" width="200" align="right" alt="Waline 图标" />

# Waline

Expand Down Expand Up @@ -72,7 +74,7 @@
你可以在 [GitHub Discussions](https://github.com/walinejs/waline/discussions) 中发布问题获取支持。当然你也可以加入我们的 [Telegram](https://t.me/walinejs) 小组或者是扫描下方二维码加入我们的 [Waline 用户交流 QQ 群](https://qm.qq.com/cgi-bin/qm/qr?k=rPZvq_EBfwQa6QZX7sToVlhH49c6ed0R&jump_from=webapi) 以获取更多的支持。

<a href="https://qm.qq.com/cgi-bin/qm/qr?k=rPZvq_EBfwQa6QZX7sToVlhH49c6ed0R&jump_from=webapi" target="_blank">
<img src="./assets/qqgroup.jpg" width="300" />
<img src="./assets/qqgroup.jpg" width="300" alt="QQ群二维码" />
</a>

## 协议
Expand Down
4 changes: 2 additions & 2 deletions docs/src/en/guide/get-started/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ Here is how you can add Waline to your web page or website:
## Comment Management (Management)

1. After the deployment is complete, please visit `<serverURL>/ui/register` to register. The first person to register will be set as an administrator.

1. After you log in as administrator, you'll be able to access the comment management dashboard. You can edit, mark or delete comments here.

1. Users can also register for an account via the comment box, and will be redirected to their profile page after logging in.

## Video Tutorial
Expand Down
2 changes: 1 addition & 1 deletion docs/src/en/guide/get-started/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ For configuration details, see [Server Reference → Environment Variables](../.

We support multiple ways of notifying you or your commenters when someone comments or replies. See [Comment Notifications](../features/notification.md) for more details.

## User Acccount Registration and Social Login
## User Account Registration and Social Login

Waline supports in-app account creation and social login using GitHub, Twitter, and Facebook.

Expand Down
1 change: 0 additions & 1 deletion docs/src/guide/features/notification.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ redirectFrom: /guide/server/notification.html
- `SITE_URL`: 网站地址,用于在消息中显示。
- `SC_TEMPLATE`: Server酱 使用的通知模板,变量与具体格式可参见下文的通知模板。未配置则使用默认模板。


## 企业微信应用通知

由于 [Server 酱](http://sc.ftqq.com/3.version) 提供的推送服务对发送消息数量有限制,如果消息数量较多时,建议使用企业微信应用通知。
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"docs:dev": "pnpm --dir=docs run dev",
"lint": "pnpm lint:eslint && pnpm lint:prettier && pnpm lint:stylelint",
"lint:eslint": "eslint --ext .js,.jsx,.vue,.ts --fix .",
"lint:md": "markdownlint docs/ --fix",
"lint:md": "markdownlint-cli2 '**/*.md'",
"lint:prettier": "prettier --check --write .",
"lint:stylelint": "stylelint packages/*/src/**/*.scss --fix",
"packages:check-update": "pnpm dlx npm-check-updates --deep",
Expand All @@ -27,7 +27,7 @@
},
"nano-staged": {
"**/*": "prettier --write --ignore-unknown",
"*.md": "markdownlint --fix",
"*.md": "markdownlint-cli2 --fix",
"*.{js,ts,vue}": "eslint --fix",
"**/package.json": "sort-package-json"
},
Expand Down Expand Up @@ -68,7 +68,7 @@
"eslint-plugin-react": "7.33.2",
"eslint-plugin-vue": "9.21.1",
"husky": "9.0.10",
"markdownlint-cli": "0.39.0",
"markdownlint-cli2": "0.12.1",
"nano-staged": "0.8.0",
"postcss": "8.4.33",
"prettier": "3.2.4",
Expand Down
4 changes: 3 additions & 1 deletion packages/client/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<img src="https://waline.js.org/logo.png" width="200" align="right" />
<!-- markdownlint-disable MD033 MD041 -->

<img src="./assets/logo.png" width="200" align="right" alt="Waline logo" />

# Waline

Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/styles/emoji.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
top: 100%;
inset-inline-start: 1.25em;
z-index: 10;
width: 100%;

display: none;

width: 100%;
max-width: 526px;
border: var(--waline-border);
border-radius: 6px;
Expand Down
56 changes: 23 additions & 33 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8cf21ff

Please sign in to comment.