chore: add prettier-plugin-organize-imports

This commit is contained in:
kunish 2023-08-28 22:36:38 +08:00
parent 07c82e87d8
commit 9686967798
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430
4 changed files with 36 additions and 8 deletions

View File

@ -1,5 +1,8 @@
{
"plugins": ["prettier-plugin-tailwindcss"],
"plugins": [
"prettier-plugin-organize-imports",
"prettier-plugin-tailwindcss"
],
"semi": false,
"singleQuote": true
}

View File

@ -34,6 +34,7 @@
"ky": "^0.33.3",
"lint-staged": "^14.0.1",
"prettier": "^3.0.2",
"prettier-plugin-organize-imports": "^3.2.3",
"prettier-plugin-tailwindcss": "^0.5.3",
"solid-apexcharts": "^0.3.2",
"solid-devtools": "^0.27.7",

View File

@ -74,9 +74,12 @@ dependencies:
prettier:
specifier: ^3.0.2
version: 3.0.2
prettier-plugin-organize-imports:
specifier: ^3.2.3
version: 3.2.3(prettier@3.0.2)(typescript@5.2.2)
prettier-plugin-tailwindcss:
specifier: ^0.5.3
version: 0.5.3(prettier@3.0.2)
version: 0.5.3(prettier-plugin-organize-imports@3.2.3)(prettier@3.0.2)
solid-apexcharts:
specifier: ^0.3.2
version: 0.3.2(apexcharts@3.42.0)(solid-js@1.7.11)
@ -3844,7 +3847,27 @@ packages:
source-map-js: 1.0.2
dev: false
/prettier-plugin-tailwindcss@0.5.3(prettier@3.0.2):
/prettier-plugin-organize-imports@3.2.3(prettier@3.0.2)(typescript@5.2.2):
resolution:
{
integrity: sha512-KFvk8C/zGyvUaE3RvxN2MhCLwzV6OBbFSkwZ2OamCrs9ZY4i5L77jQ/w4UmUr+lqX8qbaqVq6bZZkApn+IgJSg==,
}
peerDependencies:
'@volar/vue-language-plugin-pug': ^1.0.4
'@volar/vue-typescript': ^1.0.4
prettier: '>=2.0'
typescript: '>=2.9'
peerDependenciesMeta:
'@volar/vue-language-plugin-pug':
optional: true
'@volar/vue-typescript':
optional: true
dependencies:
prettier: 3.0.2
typescript: 5.2.2
dev: false
/prettier-plugin-tailwindcss@0.5.3(prettier-plugin-organize-imports@3.2.3)(prettier@3.0.2):
resolution:
{
integrity: sha512-M5K80V21yM+CTm/FEFYRv9/9LyInYbCSXpIoPAKMm8zy89IOwdiA2e4JVbcO7tvRtAQWz32zdj7/WKcsmFyAVg==,
@ -3900,6 +3923,7 @@ packages:
optional: true
dependencies:
prettier: 3.0.2
prettier-plugin-organize-imports: 3.2.3(prettier@3.0.2)(typescript@5.2.2)
dev: false
/prettier@3.0.2:

View File

@ -1,9 +1,9 @@
import { useRequest } from '~/signals'
import { For, onMount } from 'solid-js'
import type { Config as IConfig } from '~/types'
import { z } from 'zod'
import { validator } from '@felte/validator-zod'
import { createForm } from '@felte/solid'
import { validator } from '@felte/validator-zod'
import { For, onMount } from 'solid-js'
import { z } from 'zod'
import { useRequest } from '~/signals'
import type { Config as IConfig } from '~/types'
const schema = z.object({
port: z.number(),