Skip to content

Commit

Permalink
chore: update lint-staged config
Browse files Browse the repository at this point in the history
  • Loading branch information
nozomuikuta committed May 20, 2024
1 parent cb4ba1b commit ca88def
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 23 deletions.
7 changes: 5 additions & 2 deletions .config/lint-staged.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export default {
'*.{js,mjs,ts}': ['pnpm run lint:lint-staged', 'pnpm run format:lint-staged'],
'*.{css,json,md,yaml,yml}': ['pnpm run format:lint-staged'],
'*.{js,mjs,ts,vue}': [
'pnpm run lint:lint-staged',
'pnpm run format:lint-staged',
],
'*.{css,html,json,md,yaml,yml}': ['pnpm run format:lint-staged'],
}
26 changes: 14 additions & 12 deletions docs/.vitepress/components/AuthorProfile.vue
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
<script setup lang="ts">
import { VPTeamMembers } from 'vitepress/theme'
const props = withDefaults(defineProps<{
locale?: 'en' | 'ja'
}>(), {
locale: 'en'
})
const props = withDefaults(
defineProps<{
locale?: 'en' | 'ja'
}>(),
{
locale: 'en',
},
)
const author = {
avatar: 'https://avatars.githubusercontent.com/u/16436160',
name: 'Nozomu Ikuta',
desc: props.locale === 'en'
? 'Member of UnJS / Vue.js JP Core Staff / Vite Contributor'
: 'UnJSメンバー/ Vue.js JP コアスタッフ / Vite コントリビューター',
desc:
props.locale === 'en'
? 'Member of UnJS / Vue.js JP Core Staff / Vite Contributor'
: 'UnJSメンバー/ Vue.js JP コアスタッフ / Vite コントリビューター',
sponsor: 'https://github.com/sponsors/NozomuIkuta',
actionText: props.locale === 'en'
? 'Sponsor'
: 'スポンサー',
actionText: props.locale === 'en' ? 'Sponsor' : 'スポンサー',
links: [
{ icon: 'github', link: 'https://github.com/NozomuIkuta' },
{ icon: 'twitter', link: 'https://twitter.com/NozomuIkuta' }
{ icon: 'twitter', link: 'https://twitter.com/NozomuIkuta' },
],
}
</script>
Expand Down
18 changes: 9 additions & 9 deletions playground/index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Playground</title>
</head>
<body>
<h1>Hello, chibivite!</h1>
</body>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Playground</title>
</head>
<body>
<h1>Hello, chibivite!</h1>
</body>
</html>

0 comments on commit ca88def

Please sign in to comment.