Skip to content

refactor: update major #377

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

Merged
merged 19 commits into from
Jun 9, 2023
Merged
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
5 changes: 3 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
!/docs/.vuepress
!/docs/.vitepress
!/.github
!/.vscode
/.nyc_output
/assets
/coverage
/dist
/docs/.vuepress/dist
/docs/.vitepress/cache
/docs/.vitepress/dist
/node_modules
# /tests/fixtures Used testcases
/tests-integrations/config-recommended
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ After cloning the repo, run:
$ pnpm lint
$ pnpm lint:docs

# run the vuepress
# run vitepress
$ pnpm docs

# run the test suite
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
node_modules
.nyc_output
.DS_Store
docs/.vuepress/dist
docs/.vitepress/cache
docs/.vitepress/dist
coverage
*.log
*.swp
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shamefully-hoist=true
4 changes: 2 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
!/docs/.vuepress
!/docs/.vitepress
!/.github
!/.vscode
/.nyc_output
/assets
/coverage
/dist
/docs/.vuepress/dist
/docs/.vitepress/dist
/node_modules
/tests/fixtures
/tests-integrations/config-recommended
Expand Down
67 changes: 67 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import { defineConfig } from 'vitepress'
import { withCategories } from '../../scripts/lib/rules'
import '../../scripts/update-rule-docs'
import '../../scripts/update-docs-index'

// https://vitepress.dev/reference/site-config
export default defineConfig({
base: '/',
title: 'eslint-plugin-vue-i18n',
description: 'ESLint plugin for Vue I18n',
head: [['meta', { name: 'theme-color', content: '#3eaf7c' }]],
lastUpdated: true,
themeConfig: {
editLink: {
pattern:
'https://github.com/intlify/eslint-plugin-vue-i18n/edit/master/docs/:path',
text: 'Edit this page on GitHub'
},
nav: [
{
text: 'Support Intlify',
items: [
{
text: 'GitHub Sponsors',
link: 'https://github.com/sponsors/kazupon'
},
{
text: 'Patreon',
link: 'https://www.patreon.com/kazupon'
}
]
},
{
text: 'Release Notes',
link: 'https://github.com/intlify/eslint-plugin-vue-i18n/releases'
}
],
sidebar: [
{
text: 'Introduction',
link: '/intro'
},
{
text: 'Getting Started',
link: '/started'
},
{
text: 'Available Rules',
link: '/rules/'
},
...withCategories.map(({ category, rules }) => ({
text: `Rules in ${category}`,
collapsed: false,
items: rules.map(rule => ({
text: rule.name,
link: `/rules/${rule.name}`
}))
}))
],
socialLinks: [
{
icon: 'github',
link: 'https://github.com/intlify/eslint-plugin-vue-i18n'
}
]
}
})
106 changes: 0 additions & 106 deletions docs/.vuepress/config.js

This file was deleted.

27 changes: 0 additions & 27 deletions docs/.vuepress/enhanceApp.js

This file was deleted.

Empty file removed docs/.vuepress/public/.nojekyll
Empty file.
19 changes: 0 additions & 19 deletions docs/.vuepress/shim/@eslint/eslintrc/index.js

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions docs/.vuepress/shim/eslint-visitor-keys/index.js

This file was deleted.

2 changes: 0 additions & 2 deletions docs/.vuepress/shim/eslint/index.js

This file was deleted.

22 changes: 0 additions & 22 deletions docs/.vuepress/shim/fs/fake-fs.js

This file was deleted.

4 changes: 0 additions & 4 deletions docs/.vuepress/shim/fs/index.js

This file was deleted.

5 changes: 0 additions & 5 deletions docs/.vuepress/shim/glob.js

This file was deleted.

3 changes: 0 additions & 3 deletions docs/.vuepress/shim/module.js

This file was deleted.

26 changes: 26 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
# https://vitepress.dev/reference/default-theme-home-page
layout: home

hero:
name: 'eslint-plugin-vue-i18n'
# text: 'ESLint plugin for Vue I18n'
tagline: ESLint plugin for Vue I18n
image:
src: /eslint-plugin-vue-i18n.svg
alt: Logo
actions:
- theme: brand
text: Introduction
link: /intro
- theme: alt
text: Get started
link: /started
# features:
# - title: Feature A
# details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
# - title: Feature B
# details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
# - title: Feature C
# details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
---
File renamed without changes.
File renamed without changes.
8 changes: 6 additions & 2 deletions docs/rules/no-dynamic-keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ localization codes:
import Vue from 'vue'
import VueI18n from 'vue-i18n'

import en from './locales/en.json'

const i18n = new VueI18n({
locale: 'en',
messages: {
en: require('./locales/en.json')
en
}
})

Expand Down Expand Up @@ -129,10 +131,12 @@ localization codes:
import Vue from 'vue'
import VueI18n from 'vue-i18n'

import en from './locales/en.json'

const i18n = new VueI18n({
locale: 'en',
messages: {
en: require('./locales/en.json')
en
}
})

Expand Down
Loading