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

chore: lint more files #2470

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ __build__
dist
coverage
tests_output
packages/docs/.vitepress/cache
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"play": "pnpm run -r play",
"build:size": "pnpm run -r build:size",
"lint": "pnpm run lint:script && pnpm run lint:html",
"lint:script": "prettier -c --parser typescript \"packages/*/{src,__tests__,e2e}/**/*.[jt]s?(x)\"",
"lint:script": "prettier -c --parser typescript \"packages/**/*.?(m)[jt]s?(x)\" \"scripts/*.mjs\"",
"lint:html": "prettier -c --parser html \"packages/**/*.html\"",
"lint:fix": "pnpm run lint:script --write && pnpm run lint:html --write",
"test": "pnpm run -r test",
Expand Down Expand Up @@ -54,11 +54,14 @@
"commit-msg": "node scripts/verifyCommit.mjs"
},
"lint-staged": {
"*.js": [
"*.?(m)js": [
"prettier --write"
],
"*.ts?(x)": [
"*.?(m)ts?(x)": [
"prettier --parser=typescript --write"
],
"*.html": [
"prettier --parser=html --write"
]
},
"pnpm": {
Expand Down
12 changes: 10 additions & 2 deletions packages/docs/.vitepress/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ export default defineConfig({
root: { label: 'English', lang: 'en-US', link: '/', ...enConfig },
zh: { label: '简体中文', lang: 'zh-CN', link: '/zh/', ...zhConfig },
ko: { label: '한국어', lang: 'ko-KR', link: 'https://router.vuejs.kr/' },
pt: { label: 'Português', lang: 'pt-PT', link: 'https://vue-router-docs-pt.netlify.app/' },
ru: { label: 'Русский', lang: 'ru-RU', link: 'https://vue-router-ru.netlify.app' },
pt: {
label: 'Português',
lang: 'pt-PT',
link: 'https://vue-router-docs-pt.netlify.app/',
},
ru: {
label: 'Русский',
lang: 'ru-RU',
link: 'https://vue-router-ru.netlify.app',
},
},
})
3 changes: 2 additions & 1 deletion packages/docs/.vitepress/config/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ export const sharedConfig = defineConfig({
],

footer: {
copyright: 'Copyright © 2014-present Evan You, Eduardo San Martin Morote',
copyright:
'Copyright © 2014-present Evan You, Eduardo San Martin Morote',
message: 'Released under the MIT License.',
},

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const theme: Theme = {
// 'home-features-after': () => h(HomeSponsors),
'aside-ads-before': () => h(AsideSponsors),
'doc-before': () => h(TranslationStatus, { status, i18nLabels }),
'layout-top': () => h(MadVueBanner)
'layout-top': () => h(MadVueBanner),
})
},

Expand Down