From f87ac8ba0fb6dc1cc82e3af35208755a604111f7 Mon Sep 17 00:00:00 2001 From: LeifXu Date: Wed, 15 May 2024 20:43:12 +0800 Subject: [PATCH] style: formatting code --- .prettierignore | 3 ++ cspell.json | 84 ++++++++++++++++++++------------------------ package.json | 3 +- src/styles/index.css | 17 +++++---- 4 files changed, 55 insertions(+), 52 deletions(-) diff --git a/.prettierignore b/.prettierignore index 5d6387c..31939bf 100644 --- a/.prettierignore +++ b/.prettierignore @@ -22,3 +22,6 @@ src/specialFile.js # Ignore git submodule pnpm-lock.yaml + +.github +src/locales/** \ No newline at end of file diff --git a/cspell.json b/cspell.json index 71bbc72..e922145 100644 --- a/cspell.json +++ b/cspell.json @@ -1,46 +1,40 @@ { - "version": "0.1", - "language": "en", - "words": [ - "immer", - "Merkle", - "sepolia", - "urlcat", - "zustand" - ], - "ignoreWords": [ - "Lingui", - "lingui", - "rainbowkit", - "viem", - "Wagmi", - "wagmi", - "rabby", - "multicall", - "Chakra", - "chakra", - "svgr", - "Segoe", - "fontsource", - "tablist", - "Roboto" - ], - "flagWords": [], - "ignorePaths": [ - "pnpm-lock.yaml", - "package.json", - "cspell.json", - "tsconfig.tsbuildinfo", - "node_modules/**", - "dist/**", - "build/**", - ".next/**", - "public/**", - "src/assets/**", - "src/locales/**", - "tests/**", - "src/routeTree.gen.ts", - "src/abis/**" - ], - "overrides": [] -} \ No newline at end of file + "version": "0.1", + "language": "en", + "words": ["immer", "Merkle", "sepolia", "urlcat", "zustand"], + "ignoreWords": [ + "Lingui", + "lingui", + "rainbowkit", + "viem", + "Wagmi", + "wagmi", + "rabby", + "multicall", + "Chakra", + "chakra", + "svgr", + "Segoe", + "fontsource", + "tablist", + "Roboto" + ], + "flagWords": [], + "ignorePaths": [ + "pnpm-lock.yaml", + "package.json", + "cspell.json", + "tsconfig.tsbuildinfo", + "node_modules/**", + "dist/**", + "build/**", + ".next/**", + "public/**", + "src/assets/**", + "src/locales/**", + "tests/**", + "src/routeTree.gen.ts", + "src/abis/**" + ], + "overrides": [] +} diff --git a/package.json b/package.json index 85723fe..93f5d42 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "lingui:extract": "NODE_ENV=development lingui extract --clean", "lingui": "pnpm run lingui:extract && pnpm run lingui:compile", "test": "vitest", - "cspell:check": "npx cspell \"**/*\"" + "cspell:check": "npx cspell \"**/*\"", + "prettier": "npx prettier . -w" }, "dependencies": { "@chakra-ui/react": "^2.8.2", diff --git a/src/styles/index.css b/src/styles/index.css index f433d9c..25a5d00 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -7,13 +7,17 @@ .gradient-border { --border-radius: 10px; --border-width: 1px; - --border-color: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3)); + --border-color: linear-gradient( + 45deg, + rgba(255, 255, 255, 0.1), + rgba(255, 255, 255, 0.3) + ); position: relative; border-radius: var(--border-radius); } -.gradient-border::after{ - content: ""; +.gradient-border::after { + content: ''; position: absolute; left: 0; top: 0; @@ -40,10 +44,11 @@ } ::selection { - background: #7280FE; + background: #7280fe; color: white; } -button, *:active { +button, +*:active { -webkit-tap-highlight-color: transparent; -} \ No newline at end of file +}