Skip to content

Commit a3554b3

Browse files
committed
chore: bump prettier-config to v2
1 parent 62586ea commit a3554b3

Some content is hidden

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

72 files changed

+683
-486
lines changed

.git-blame-ignore-revs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# git-blame ignored revisions
2+
# To configure, run
3+
# git config blame.ignoreRevsFile .git-blame-ignore-revs
4+
# Requires Git > 2.23
5+
# See https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-fileltfilegt

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"streetsidesoftware.code-spell-checker",
44
"editorconfig.editorconfig",
55
"dbaeumer.vscode-eslint",
6-
"esbenp.prettier-vscode"
6+
"esbenp.prettier-vscode",
7+
"antfu.unocss"
78
]
89
}

.vscode/settings.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
{
2-
"prettier.enable": true,
32
"eslint.enable": true,
3+
"prettier.enable": true,
44
"editor.formatOnSave": true,
5+
"prettier.configPath": "./prettier.config.mjs",
6+
"editor.defaultFormatter": "esbenp.prettier-vscode",
57
"editor.codeActionsOnSave": {
68
"source.fixAll.eslint": "explicit",
7-
"source.organizeImports": "never"
9+
"source.organizeImports": "never",
10+
"source.sortImports": "never"
811
},
912
"eslint.validate": [
1013
"vue",
1114
"yaml",
12-
"html",
1315
"toml",
1416
"json",
1517
"jsonc",

docs/.vitepress/components/DropZone.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ onMounted(() => {
7777
<template>
7878
<div
7979
v-if="isDragging"
80-
class="pointer-events-auto fixed inset-0 z-dropzone p-10 backdrop-blur-5"
80+
class="z-dropzone pointer-events-auto fixed inset-0 p-10 backdrop-blur-5"
8181
>
8282
<div
83-
class="border-dashed- h-full w-full flex justify-center items-center flex-col border-3 border-base rounded-2xl bg-white/50 dark:bg-black:50"
83+
class="border-dashed- border-base h-full w-full flex flex-col items-center justify-center border-3 rounded-2xl bg-white/50 dark:bg-black:50"
8484
>
8585
<p class="text-xl">Drop SVG file here</p>
8686
</div>

docs/.vitepress/components/Editor/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
import { useData } from 'vitepress/client'
33
import { computed } from 'vue'
44
import { Codemirror } from 'vue-codemirror'
5-
import { languages, type SupportLanguage } from './language'
5+
import { languages } from './language'
66
import { githubDark, githubLight } from './theme'
77
import type { Extension } from '@codemirror/state'
8+
import type { SupportLanguage } from './language'
89
910
const props = withDefaults(
1011
defineProps<{

docs/.vitepress/components/Editor/theme.ts

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ export const defaultSettingsGithubLight: CreateThemeOptions['settings'] = {
1717
gutterForeground: '#6e7781',
1818
}
1919

20-
export const createGithubLightTheme = (options?: Partial<CreateThemeOptions>) => {
20+
export const createGithubLightTheme = (
21+
options?: Partial<CreateThemeOptions>,
22+
) => {
2123
const { theme = 'light', settings = {}, styles = [] } = options || {}
2224
return createTheme({
2325
theme,
@@ -29,8 +31,14 @@ export const createGithubLightTheme = (options?: Partial<CreateThemeOptions>) =>
2931
{ tag: [t.standard(t.tagName), t.tagName], color: '#116329' },
3032
{ tag: [t.comment, t.bracket], color: '#6a737d' },
3133
{ tag: [t.className, t.propertyName], color: '#6f42c1' },
32-
{ tag: [t.variableName, t.attributeName, t.number, t.operator], color: '#005cc5' },
33-
{ tag: [t.keyword, t.typeName, t.typeOperator, t.typeName], color: '#d73a49' },
34+
{
35+
tag: [t.variableName, t.attributeName, t.number, t.operator],
36+
color: '#005cc5',
37+
},
38+
{
39+
tag: [t.keyword, t.typeName, t.typeOperator, t.typeName],
40+
color: '#d73a49',
41+
},
3442
{ tag: [t.string, t.meta, t.regexp], color: '#032f62' },
3543
{ tag: [t.name, t.quote], color: '#22863a' },
3644
{ tag: [t.heading, t.strong], color: '#24292e', fontWeight: 'bold' },
@@ -58,7 +66,9 @@ export const defaultSettingsGithubDark: CreateThemeOptions['settings'] = {
5866
lineHighlight: '#36334280',
5967
}
6068

61-
export const createGithubDarkTheme = (options?: Partial<CreateThemeOptions>) => {
69+
export const createGithubDarkTheme = (
70+
options?: Partial<CreateThemeOptions>,
71+
) => {
6272
const { theme = 'dark', settings = {}, styles = [] } = options || {}
6373
return createTheme({
6474
theme,
@@ -70,8 +80,14 @@ export const createGithubDarkTheme = (options?: Partial<CreateThemeOptions>) =>
7080
{ tag: [t.standard(t.tagName), t.tagName], color: '#7ee787' },
7181
{ tag: [t.comment, t.bracket], color: '#8b949e' },
7282
{ tag: [t.className, t.propertyName], color: '#d2a8ff' },
73-
{ tag: [t.variableName, t.attributeName, t.number, t.operator], color: '#79c0ff' },
74-
{ tag: [t.keyword, t.typeName, t.typeOperator, t.typeName], color: '#ff7b72' },
83+
{
84+
tag: [t.variableName, t.attributeName, t.number, t.operator],
85+
color: '#79c0ff',
86+
},
87+
{
88+
tag: [t.keyword, t.typeName, t.typeOperator, t.typeName],
89+
color: '#ff7b72',
90+
},
7591
{ tag: [t.string, t.meta, t.regexp], color: '#a5d6ff' },
7692
{ tag: [t.name, t.quote], color: '#7ee787' },
7793
{ tag: [t.heading, t.strong], color: '#d2a8ff', fontWeight: 'bold' },

docs/.vitepress/components/Playground/ActionContainer.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ function tryLoadFile(file: File) {
3636
</script>
3737

3838
<template>
39-
<div class="relative h-full w-full flex flex-col py-4 justify-between">
40-
<div class="relative p-4 w-full">
41-
<p class="text-lg font-medium flex items-center justify-between">
39+
<div class="relative h-full w-full flex flex-col justify-between py-4">
40+
<div class="relative w-full p-4">
41+
<p class="flex items-center justify-between text-lg font-medium">
4242
<span>ParseCostTime:</span>
4343
<span>{{ +parseCost.toFixed(2) }} ms</span>
4444
</p>
4545
</div>
46-
<div class="relative p-4 flex gap-4 flex-wrap justify-around items-center">
46+
<div class="relative flex flex-wrap items-center justify-around gap-4 p-4">
4747
<VPButton
4848
@click="openFileDialog"
4949
theme="brand"

docs/.vitepress/components/Playground/CodeContainer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { code } = useSharedPlaygroundState()
55
</script>
66

77
<template>
8-
<div class="relative w-full h-full">
8+
<div class="relative h-full w-full">
99
<Editor
1010
v-model="code"
1111
language="xml"

docs/.vitepress/components/Playground/InputContainer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function handleTabsChanage(tabName: string) {
2323
</script>
2424

2525
<template>
26-
<div class="w-full h-full flex gap-2 flex-col relative">
26+
<div class="relative h-full w-full flex flex-col gap-2">
2727
<Tabs
2828
@change="handleTabsChanage"
2929
v-model="activeInputTab"

docs/.vitepress/components/Playground/JsonContainer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { astJson } = useSharedPlaygroundState()
55
</script>
66

77
<template>
8-
<div class="relative w-full h-full">
8+
<div class="relative h-full w-full">
99
<Editor
1010
:model-value="astJson"
1111
language="json"

0 commit comments

Comments
 (0)