Skip to content

Commit 73edd91

Browse files
refactor: update major (#377)
* chore(package): manage with pnpm * ci: enable corepack * chore: fix linting * chore: correct formatting * chore(deps): add json-schema * chore(deps): update all minor * chore(deps): update major * chore(deps): migrate glob * refactor(docs): migrate to vitepress * chore: migrate to esm * chore: switch back to commonjs * chore(deps): remove types * ci: add netlify configuration * chore(deps): shamefully hoist * docs(rules): use index * docs(rules): correct link Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com> * docs(rules): correct links --------- Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
1 parent a9a4b13 commit 73edd91

File tree

86 files changed

+2022
-9225
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+2022
-9225
lines changed

.eslintignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
!/docs/.vuepress
1+
!/docs/.vitepress
22
!/.github
33
!/.vscode
44
/.nyc_output
55
/assets
66
/coverage
77
/dist
8-
/docs/.vuepress/dist
8+
/docs/.vitepress/cache
9+
/docs/.vitepress/dist
910
/node_modules
1011
# /tests/fixtures Used testcases
1112
/tests-integrations/config-recommended
File renamed without changes.

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ After cloning the repo, run:
6464
$ pnpm lint
6565
$ pnpm lint:docs
6666

67-
# run the vuepress
67+
# run vitepress
6868
$ pnpm docs
6969

7070
# run the test suite

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
node_modules
22
.nyc_output
33
.DS_Store
4-
docs/.vuepress/dist
4+
docs/.vitepress/cache
5+
docs/.vitepress/dist
56
coverage
67
*.log
78
*.swp

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shamefully-hoist=true

.prettierignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
!/docs/.vuepress
1+
!/docs/.vitepress
22
!/.github
33
!/.vscode
44
/.nyc_output
55
/assets
66
/coverage
77
/dist
8-
/docs/.vuepress/dist
8+
/docs/.vitepress/dist
99
/node_modules
1010
/tests/fixtures
1111
/tests-integrations/config-recommended

docs/.vitepress/config.ts

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
import { defineConfig } from 'vitepress'
2+
import { withCategories } from '../../scripts/lib/rules'
3+
import '../../scripts/update-rule-docs'
4+
import '../../scripts/update-docs-index'
5+
6+
// https://vitepress.dev/reference/site-config
7+
export default defineConfig({
8+
base: '/',
9+
title: 'eslint-plugin-vue-i18n',
10+
description: 'ESLint plugin for Vue I18n',
11+
head: [['meta', { name: 'theme-color', content: '#3eaf7c' }]],
12+
lastUpdated: true,
13+
themeConfig: {
14+
editLink: {
15+
pattern:
16+
'https://github.com/intlify/eslint-plugin-vue-i18n/edit/master/docs/:path',
17+
text: 'Edit this page on GitHub'
18+
},
19+
nav: [
20+
{
21+
text: 'Support Intlify',
22+
items: [
23+
{
24+
text: 'GitHub Sponsors',
25+
link: 'https://github.com/sponsors/kazupon'
26+
},
27+
{
28+
text: 'Patreon',
29+
link: 'https://www.patreon.com/kazupon'
30+
}
31+
]
32+
},
33+
{
34+
text: 'Release Notes',
35+
link: 'https://github.com/intlify/eslint-plugin-vue-i18n/releases'
36+
}
37+
],
38+
sidebar: [
39+
{
40+
text: 'Introduction',
41+
link: '/intro'
42+
},
43+
{
44+
text: 'Getting Started',
45+
link: '/started'
46+
},
47+
{
48+
text: 'Available Rules',
49+
link: '/rules/'
50+
},
51+
...withCategories.map(({ category, rules }) => ({
52+
text: `Rules in ${category}`,
53+
collapsed: false,
54+
items: rules.map(rule => ({
55+
text: rule.name,
56+
link: `/rules/${rule.name}`
57+
}))
58+
}))
59+
],
60+
socialLinks: [
61+
{
62+
icon: 'github',
63+
link: 'https://github.com/intlify/eslint-plugin-vue-i18n'
64+
}
65+
]
66+
}
67+
})

0 commit comments

Comments
 (0)