diff --git a/.github/workflows/check-docs.yml b/.github/workflows/check-docs.yml index 7714df9f..aba61fae 100644 --- a/.github/workflows/check-docs.yml +++ b/.github/workflows/check-docs.yml @@ -35,6 +35,9 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile + - name: Lint + run: pnpm lint + - name: Build docs with ${{ matrix.bundler }} run: pnpm docs:build env: diff --git a/docs/reference/default-theme/markdown.md b/docs/reference/default-theme/markdown.md index 983bb2c6..42bf8c0a 100644 --- a/docs/reference/default-theme/markdown.md +++ b/docs/reference/default-theme/markdown.md @@ -109,6 +109,7 @@ const foo = 'foo' ``` ::: + ::: code-group-item BAR ```ts @@ -129,6 +130,7 @@ const foo = 'foo' ``` ::: + ::: code-group-item BAR ```ts diff --git a/docs/zh/reference/default-theme/markdown.md b/docs/zh/reference/default-theme/markdown.md index fc5f10c2..c9c681d2 100644 --- a/docs/zh/reference/default-theme/markdown.md +++ b/docs/zh/reference/default-theme/markdown.md @@ -109,6 +109,7 @@ const foo = 'foo' ``` ::: + ::: code-group-item BAR ```ts @@ -129,6 +130,7 @@ const foo = 'foo' ``` ::: + ::: code-group-item BAR ```ts diff --git a/package.json b/package.json index b58501f7..1908e827 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,9 @@ "docs:clean": "rimraf docs/.vuepress/.temp docs/.vuepress/.cache docs/.vuepress/dist", "docs:dev": "vuepress-cli dev docs --clean-cache --clean-temp", "docs:dev-webpack": "DOCS_BUNDLER=webpack pnpm docs:dev", - "docs:lint": "prettier --check --write .", - "docs:serve": "anywhere -s -h localhost -d docs/.vuepress/dist" + "docs:serve": "anywhere -s -h localhost -d docs/.vuepress/dist", + "format": "prettier --write .", + "lint": "eslint --ext .cjs,.js,.ts,.vue . && prettier --check ." }, "commitlint": { "extends": [