chore: modify prettier config

This commit is contained in:
KaiyiWing 2023-04-23 01:14:48 +08:00
parent a3000f52dd
commit 178dcf3600
3 changed files with 24 additions and 24 deletions

View File

@ -1,16 +0,0 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 140,
"bracketSpacing": true,
"semi": false,
"tabWidth": 2,
"jsxSingleQuote": false,
"overrides": [
{
"files": ".prettierrc",
"options": { "parser": "json" }
}
],
"plugins": ["prettier-plugin-tailwindcss", "@trivago/prettier-plugin-sort-imports"]
}

16
prettier.config.js Normal file
View File

@ -0,0 +1,16 @@
module.exports = {
singleQuote: true,
trailingComma: 'all',
printWidth: 140,
bracketSpacing: true,
semi: false,
tabWidth: 2,
jsxSingleQuote: false,
overrides: [
{
files: '.prettierrc',
options: { parser: 'json' },
},
],
plugins: ['@trivago/prettier-plugin-sort-imports', require('prettier-plugin-tailwindcss')],
}

View File

@ -59,14 +59,14 @@ export default function DataSetting() {
<strong></strong>使 Qwerty Learner
使线
</span>
<span className="pl-4 text-sm font-bold leading-tight text-red-500 text-left"></span>
<div className="h-3 w-full px-5 flex items-center justify-start">
<span className="pl-4 text-left text-sm font-bold leading-tight text-red-500"></span>
<div className="flex h-3 w-full items-center justify-start px-5">
<Progress.Root
className="relative bg-gray-200 rounded-full w-11/12 h-2 overflow-hidden transform translate-z-0"
className="translate-z-0 relative h-2 w-11/12 transform overflow-hidden rounded-full bg-gray-200"
value={exportProgress}
>
<Progress.Indicator
className="bg-indigo-400 h-full w-full transition-transform duration-500 ease-out cubic-bezier(0.65, 0, 0.35, 1)"
className="cubic-bezier(0.65, 0, 0.35, 1) h-full w-full bg-indigo-400 transition-transform duration-500 ease-out"
style={{ transform: `translateX(-${100 - exportProgress}%)` }}
/>
</Progress.Root>
@ -80,16 +80,16 @@ export default function DataSetting() {
<div className={styles.section}>
<span className={styles.sectionLabel}></span>
<span className={styles.sectionDescription}>
<strong className="text-red-500 text-sm font-bold"> </strong>
<strong className="text-sm font-bold text-red-500"> </strong>
</span>
<div className="h-3 w-full px-5 flex items-center justify-start">
<div className="flex h-3 w-full items-center justify-start px-5">
<Progress.Root
className="relative bg-gray-200 rounded-full w-11/12 h-2 overflow-hidden transform translate-z-0"
className="translate-z-0 relative h-2 w-11/12 transform overflow-hidden rounded-full bg-gray-200"
value={importProgress}
>
<Progress.Indicator
className="bg-indigo-400 h-full w-full transition-transform duration-500 ease-out cubic-bezier(0.65, 0, 0.35, 1)"
className="cubic-bezier(0.65, 0, 0.35, 1) h-full w-full bg-indigo-400 transition-transform duration-500 ease-out"
style={{ transform: `translateX(-${100 - importProgress}%)` }}
/>
</Progress.Root>