From 5af841b38a25077a4dbd14bacd174f9bb3634442 Mon Sep 17 00:00:00 2001 From: Thomas Beer <71586988+Tommypop2@users.noreply.github.com> Date: Thu, 23 May 2024 22:18:11 +0100 Subject: [PATCH 1/2] Add biome --- biome.json | 28 +++ package.json | 8 +- packages/commands/package.json | 5 +- packages/commands/src/handlers/add.ts | 7 +- packages/commands/src/lib/integrations.ts | 135 +++++++------- packages/commands/src/lib/utils/helpers.ts | 174 +++++++++--------- packages/core/package.json | 10 +- packages/core/src/index.ts | 4 +- packages/create-solid/package.json | 14 +- packages/reactivity/package.json | 5 +- packages/ui/package.json | 5 +- .../ui/src/components/autocomplete/index.ts | 4 +- packages/utils/package.json | 5 +- packages/utils/src/updates/index.ts | 3 +- pnpm-lock.yaml | 91 +++++++++ 15 files changed, 299 insertions(+), 199 deletions(-) create mode 100644 biome.json diff --git a/biome.json b/biome.json new file mode 100644 index 0000000..5f4beaa --- /dev/null +++ b/biome.json @@ -0,0 +1,28 @@ +{ + "$schema": "https://biomejs.dev/schemas/1.7.3/schema.json", + "formatter": { + "enabled": true, + "formatWithErrors": false, + "indentStyle": "tab", + "indentWidth": 2, + "lineEnding": "cr", + "lineWidth": 120, + "attributePosition": "auto", + "ignore": ["**/*.rs", "**/*.yaml"] + }, + "organizeImports": { "enabled": true }, + "linter": { "enabled": true, "rules": { "recommended": true } }, + "javascript": { + "formatter": { + "jsxQuoteStyle": "double", + "quoteProperties": "asNeeded", + "trailingComma": "all", + "semicolons": "always", + "arrowParentheses": "always", + "bracketSpacing": true, + "bracketSameLine": false, + "quoteStyle": "double", + "attributePosition": "auto" + } + } +} diff --git a/package.json b/package.json index 0e87800..4d9aa0d 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "watch:ui": "nodemon --watch packages/ui/src -e ts --exec 'turbo run build --scope=ui'", "watch:utils": "nodemon --watch packages/utils/src -e ts --exec 'turbo run build --scope=utils'", "start": "cd packages/core && pnpm start", - "format": "prettier --write ." + "format": "biome format ./ --write", + "lint": "biome lint ." }, "contributors": [ { @@ -30,10 +31,9 @@ "name": "Rahul Batra" } ], - "workspaces": [ - "./packages/*" - ], + "workspaces": ["./packages/*"], "devDependencies": { + "@biomejs/biome": "^1.7.3", "@changesets/cli": "2.27.3", "nodemon": "^3.1.0", "prettier": "^3.2.5", diff --git a/packages/commands/package.json b/packages/commands/package.json index 5de1b03..8c74ce8 100644 --- a/packages/commands/package.json +++ b/packages/commands/package.json @@ -8,10 +8,7 @@ "type": "git", "url": "https://github.com/solidjs-community/solid-cli" }, - "files": [ - "dist", - "types" - ], + "files": ["dist", "types"], "main": "./dist/index.mjs", "module": "./dist/index.mjs", "types": "./types/index.d.ts", diff --git a/packages/commands/src/handlers/add.ts b/packages/commands/src/handlers/add.ts index 5c8a4e6..0ce5813 100644 --- a/packages/commands/src/handlers/add.ts +++ b/packages/commands/src/handlers/add.ts @@ -179,7 +179,9 @@ export const handleAdd = async (packages?: string[], forceTransform: boolean = f if (fileUpdates.length) p.log.message([`${color.cyan("Modify")}`, ...fileUpdates.map((f) => ` - ${f}`)].join("\n")); if (packageUpdates.length) - p.log.message([`${color.cyan("Install")}`, ...packageUpdates.map((p) => ` - ${p.name}` + (p.dev ? " (dev)" : ""))].join("\n")); + p.log.message( + [`${color.cyan("Install")}`, ...packageUpdates.map((p) => ` - ${p.name}` + (p.dev ? " (dev)" : ""))].join("\n"), + ); if (commandUpdates.length) p.log.message([`${color.cyan("Run commands")}`, ...commandUpdates.map((p) => ` - ${p}`)].join("\n")); @@ -196,7 +198,8 @@ export const handleAdd = async (packages?: string[], forceTransform: boolean = f if (postInstalls.length === 0) return; p.log.message( - `${postInstalls.length} ${postInstalls.length === 1 ? "package has" : "packages have" + `${postInstalls.length} ${ + postInstalls.length === 1 ? "package has" : "packages have" } post install steps that need to run.`, ); diff --git a/packages/commands/src/lib/integrations.ts b/packages/commands/src/lib/integrations.ts index 04b2049..3752761 100644 --- a/packages/commands/src/lib/integrations.ts +++ b/packages/commands/src/lib/integrations.ts @@ -26,7 +26,7 @@ export type Integrations = Record; export const [rootFile, setRootFile] = createSignal(undefined); export const integrations: Record = { - "tailwind": { + tailwind: { installs: ["tailwindcss", "postcss", "autoprefixer"], postInstall: async () => { const pM = detectPackageManager(); @@ -73,7 +73,7 @@ export const integrations: Record = { await flushQueue(); }, }, - "unocss": { + unocss: { pluginOptions: { importName: "UnoCss", importSource: "unocss/vite", @@ -88,7 +88,7 @@ export const integrations: Record = { await insertAtBeginning(path, `import "virtual:uno.css";\n`); }, }, - "vitepwa": { + vitepwa: { pluginOptions: { importName: "VitePWA", importSource: "vite-plugin-pwa", @@ -111,7 +111,7 @@ export const integrations: Record = { await insertAtBeginning(path, `import "solid-devtools";\n`); }, }, - "vitest": { + vitest: { installs: [], installsDev: [ "vitest", @@ -123,30 +123,32 @@ export const integrations: Record = { additionalConfig: async () => { try { p.log.info("Adding test script to package.json"); - let hasStart = false; - manipulateJsonFile("package.json", (packageJson) => { - if (!packageJson.scripts) { packageJson.scripts = {}; } - if (!/\bvitest\b/.test(packageJson.scripts.test || "")) { - packageJson.scripts.test = "vitest"; - } - hasStart = packageJson.dependencies["@solidjs/start"] - return packageJson; - }); + let hasStart = false; + manipulateJsonFile("package.json", (packageJson) => { + if (!packageJson.scripts) { + packageJson.scripts = {}; + } + if (!/\bvitest\b/.test(packageJson.scripts.test || "")) { + packageJson.scripts.test = "vitest"; + } + hasStart = packageJson.dependencies["@solidjs/start"]; + return packageJson; + }); const hasTs = fileExists("tsconfig.json"); - if (hasTs) { + if (hasTs) { p.log.info("Adding testing types to tsconfig.json"); - manipulateJsonFile("tsconfig.json", (tsConfig) => { - if (!tsConfig.compilerOptions) { - tsConfig.compilerOptions = {}; - } - tsConfig.compilerOptions.types = [ - ...new Set([...(tsConfig.compilerOptions.types || []), "vite/client", "@testing-library/jest-dom"]), - ]; - return tsConfig; - }); + manipulateJsonFile("tsconfig.json", (tsConfig) => { + if (!tsConfig.compilerOptions) { + tsConfig.compilerOptions = {}; + } + tsConfig.compilerOptions.types = [ + ...new Set([...(tsConfig.compilerOptions.types || []), "vite/client", "@testing-library/jest-dom"]), + ]; + return tsConfig; + }); } if ( - hasStart && + hasStart && ["ts", "mjs", "cjs", "js"].every( (suffix) => !fileExists(`vite.config.${suffix}`) && !fileExists(`vitest.config.${suffix}`), ) @@ -173,49 +175,52 @@ export default defineConfig({ } }, }, - "tauri-v1.x": { - installs: ["@tauri-apps/cli"], - postInstall: async () => { - try { - let name = ""; - manipulateJsonFile("package.json", (packageJson) => { - if (!packageJson.scripts) { packageJson.scripts = {}; } - packageJson.scripts.tauri = "tauri"; - name = packageJson.name; - return packageJson; - }); - await flushQueue(); - const pM = detectPackageManager(); - await $`${getRunnerCommand(pM)} tauri init --ci -A ${name} -W ${name} -D ../dist -P http://localhost:3000`; - p.note(`Make sure you have installed all prerequisites: https://tauri.app/v1/guides/getting-started/prerequisites + "tauri-v1.x": { + installs: ["@tauri-apps/cli"], + postInstall: async () => { + try { + let name = ""; + manipulateJsonFile("package.json", (packageJson) => { + if (!packageJson.scripts) { + packageJson.scripts = {}; + } + packageJson.scripts.tauri = "tauri"; + name = packageJson.name; + return packageJson; + }); + await flushQueue(); + const pM = detectPackageManager(); + await $`${getRunnerCommand(pM)} tauri init --ci -A ${name} -W ${name} -D ../dist -P http://localhost:3000`; + p.note(`Make sure you have installed all prerequisites: https://tauri.app/v1/guides/getting-started/prerequisites Start tauri development with ${color.bold(pM.name)} ${color.bold(pM.runScriptCommand("tauri dev"))}`); - } catch (err) { - console.error(err); - } - }, - }, - "tauri-v2.x": { - installs: ["@tauri-apps/cli@next"], - postInstall: async () => { - try { - let name = ""; - manipulateJsonFile("package.json", (packageJson) => { - if (!packageJson.scripts) { packageJson.scripts = {}; } - packageJson.scripts.tauri = "tauri"; - name = packageJson.name; - return packageJson; - }) - await flushQueue(); - const pM = detectPackageManager(); - await $`${getRunnerCommand(pM)} tauri init --ci -A ${name} -W ${name} -D ../dist -P http://localhost:3000`; - p.note(`Make sure you have installed all prerequisites: https://v2.tauri.app/start/prerequisites/ + } catch (err) { + console.error(err); + } + }, + }, + "tauri-v2.x": { + installs: ["@tauri-apps/cli@next"], + postInstall: async () => { + try { + let name = ""; + manipulateJsonFile("package.json", (packageJson) => { + if (!packageJson.scripts) { + packageJson.scripts = {}; + } + packageJson.scripts.tauri = "tauri"; + name = packageJson.name; + return packageJson; + }); + await flushQueue(); + const pM = detectPackageManager(); + await $`${getRunnerCommand(pM)} tauri init --ci -A ${name} -W ${name} -D ../dist -P http://localhost:3000`; + p.note(`Make sure you have installed all prerequisites: https://v2.tauri.app/start/prerequisites/ Start tauri development with ${color.bold(pM.name)} ${color.bold(pM.runScriptCommand("tauri dev"))}`); - } catch (err) { - console.error(err); - } - }, - }, + } catch (err) { + console.error(err); + } + }, + }, }; - diff --git a/packages/commands/src/lib/utils/helpers.ts b/packages/commands/src/lib/utils/helpers.ts index b910217..3f61def 100644 --- a/packages/commands/src/lib/utils/helpers.ts +++ b/packages/commands/src/lib/utils/helpers.ts @@ -8,98 +8,98 @@ import * as p from "@clack/prompts"; import color from "picocolors"; export const getProjectRoot = async () => { - const { stdout } = await $`npm root`; + const { stdout } = await $`npm root`; - return stdout.slice(0, stdout.lastIndexOf("/")); + return stdout.slice(0, stdout.lastIndexOf("/")); }; export const getRootFile = async () => { - if (await isSolidStart()) { - return "src/app.tsx"; - } - return "src/index.tsx"; + if (await isSolidStart()) { + return "src/app.tsx"; + } + return "src/index.tsx"; }; export const fileExists = (path: string) => { - return existsSync(path); + return existsSync(path); }; export function validateFilePath(path: string, lookingFor: string): string | undefined; export function validateFilePath(path: string, lookingFor: string[]): string | undefined; export function validateFilePath(path: string, lookingFor: string | string[]): string | undefined { - path = resolve(path); - let isDir: boolean; - try { - console.log(path); - isDir = lstatSync(path).isDirectory(); - } catch (e) { - return undefined; - } - if (isDir) { - const files = readdirSync(path, { withFileTypes: true }); - - const config = files.find((file) => { - if (Array.isArray(lookingFor)) { - return lookingFor.some((s) => file.name.startsWith(s)); - } - - return file.name.startsWith(lookingFor); - }); - return config ? join(path, config.name) : undefined; - } - - const pathIsValid = Array.isArray(lookingFor) - ? lookingFor.some((s) => path.startsWith(s)) - : path.startsWith(lookingFor); - - const exists = fileExists(path) && pathIsValid; - - return exists ? path : undefined; + path = resolve(path); + let isDir: boolean; + try { + console.log(path); + isDir = lstatSync(path).isDirectory(); + } catch (e) { + return undefined; + } + if (isDir) { + const files = readdirSync(path, { withFileTypes: true }); + + const config = files.find((file) => { + if (Array.isArray(lookingFor)) { + return lookingFor.some((s) => file.name.startsWith(s)); + } + + return file.name.startsWith(lookingFor); + }); + return config ? join(path, config.name) : undefined; + } + + const pathIsValid = Array.isArray(lookingFor) + ? lookingFor.some((s) => path.startsWith(s)) + : path.startsWith(lookingFor); + + const exists = fileExists(path) && pathIsValid; + + return exists ? path : undefined; } export async function findFiles( - startPath: string, - lookingFor: string | string[], - opts: { depth?: number; ignoreDirs?: string[]; startsWith?: boolean }, + startPath: string, + lookingFor: string | string[], + opts: { depth?: number; ignoreDirs?: string[]; startsWith?: boolean }, ): Promise { - let { depth = Infinity, ignoreDirs = ["node_modules", "."], startsWith = true } = opts; - - startPath = resolve(startPath); - let isDir: boolean; - try { - isDir = lstatSync(startPath).isDirectory(); - } catch (e) { - return []; - } - if (!isDir) { - startPath = resolve(startPath.slice(0, startPath.lastIndexOf("/"))); - } - - let filePaths: string[] = []; - - const files = readdirSync(startPath, { withFileTypes: true }); - - for (const file of files) { - if (file.isDirectory() && !ignoreDirs.some((s) => file.name.includes(s))) { - if (Number.isFinite(depth) && depth-- <= 0) continue; - filePaths = filePaths.concat(await findFiles(resolve(startPath, file.name), lookingFor, opts)); - continue; - } - - if (file.isFile()) { - const fileMatch = Array.isArray(lookingFor) - ? lookingFor.some((s) => (startsWith ? file.name.startsWith(s) : file.name.endsWith(s))) - : startsWith - ? file.name.startsWith(lookingFor) - : file.name.endsWith(lookingFor); - - if (fileMatch) { - filePaths.push(resolve(startPath, file.name)); - } - } - } - - return filePaths; + let { depth = Infinity, ignoreDirs = ["node_modules", "."], startsWith = true } = opts; + + startPath = resolve(startPath); + let isDir: boolean; + try { + isDir = lstatSync(startPath).isDirectory(); + } catch (e) { + return []; + } + if (!isDir) { + startPath = resolve(startPath.slice(0, startPath.lastIndexOf("/"))); + } + + let filePaths: string[] = []; + + const files = readdirSync(startPath, { withFileTypes: true }); + + for (const file of files) { + if (file.isDirectory() && !ignoreDirs.some((s) => file.name.includes(s))) { + if (Number.isFinite(depth) && depth-- <= 0) continue; + filePaths = filePaths.concat(await findFiles(resolve(startPath, file.name), lookingFor, opts)); + continue; + } + + if (file.isFile()) { + const fileMatch = Array.isArray(lookingFor) + ? lookingFor.some((s) => (startsWith ? file.name.startsWith(s) : file.name.endsWith(s))) + : startsWith + ? file.name.startsWith(lookingFor) + : file.name.endsWith(lookingFor); + + if (fileMatch) { + filePaths.push(resolve(startPath, file.name)); + } + } + } + + return filePaths; } export const getConfigFile = async (file: "app" | "vite" = "app") => { @@ -138,15 +138,15 @@ export const getConfigFile = async (file: "app" | "vite" = "app") => { }; export async function manipulateJsonFile(name: string, manipulate: (obj: Record) => Record) { - try { - const jsonString = await readFile(name, "utf8"); - const jsonObj = JSON.parse(jsonString); - await writeFile( - name, - JSON.stringify(manipulate(jsonObj), null, /^(\t|\s+)/m.exec(jsonString)?.[0] || 2) + "\n", - "utf8", - ); - } catch (error) { - p.log.error(color.red(error ? error.toString() : `unknown error when manipulating ${name}`)); - } + try { + const jsonString = await readFile(name, "utf8"); + const jsonObj = JSON.parse(jsonString); + await writeFile( + name, + JSON.stringify(manipulate(jsonObj), null, /^(\t|\s+)/m.exec(jsonString)?.[0] || 2) + "\n", + "utf8", + ); + } catch (error) { + p.log.error(color.red(error ? error.toString() : `unknown error when manipulating ${name}`)); + } } diff --git a/packages/core/package.json b/packages/core/package.json index fcf2e6b..6ae1677 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -9,18 +9,12 @@ "type": "git", "url": "https://github.com/solidjs-community/solid-cli" }, - "keywords": [ - "solidjs", - "solid", - "cli" - ], + "keywords": ["solidjs", "solid", "cli"], "main": "dist/index.mjs", "bin": { "solid": "./dist/index.mjs" }, - "files": [ - "dist" - ], + "files": ["dist"], "dependencies": { "@clack/core": "0.3.4", "@clack/prompts": "0.7.0", diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index c358bb3..4d571e9 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -96,7 +96,6 @@ const main = async () => { }); const args = process.argv.slice(2); try { - if (args.length === 0) { await provideSuggestions(); return; @@ -108,8 +107,7 @@ const main = async () => { } await run(cli, args); - } - catch (e) { + } catch (e) { console.error(e); process.exit(1); } diff --git a/packages/create-solid/package.json b/packages/create-solid/package.json index 8b32d97..11a6282 100644 --- a/packages/create-solid/package.json +++ b/packages/create-solid/package.json @@ -3,27 +3,19 @@ "version": "0.5.9", "description": "Create Solid apps with low configuration", "author": "Thomas Beer", - "contributors": [ - "Rahul Batra" - ], + "contributors": ["Rahul Batra"], "license": "MIT", "homepage": "https://solid-cli.netlify.app", "repository": { "type": "git", "url": "https://github.com/solidjs-community/solid-cli" }, - "keywords": [ - "solidjs", - "solid", - "cli" - ], + "keywords": ["solidjs", "solid", "cli"], "main": "dist/index.mjs", "bin": { "create-solid": "./dist/index.mjs" }, - "files": [ - "dist" - ], + "files": ["dist"], "scripts": { "start": "jiti ./src/index.ts", "build": "tsc && tsup" diff --git a/packages/reactivity/package.json b/packages/reactivity/package.json index cb765c4..91040e7 100644 --- a/packages/reactivity/package.json +++ b/packages/reactivity/package.json @@ -8,10 +8,7 @@ "type": "git", "url": "https://github.com/solidjs-community/solid-cli" }, - "files": [ - "dist", - "types" - ], + "files": ["dist", "types"], "main": "./dist/index.mjs", "module": "./dist/index.mjs", "types": "./types/index.d.ts", diff --git a/packages/ui/package.json b/packages/ui/package.json index 864a8e1..319229d 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -7,10 +7,7 @@ "type": "git", "url": "https://github.com/solidjs-community/solid-cli" }, - "files": [ - "dist", - "types" - ], + "files": ["dist", "types"], "description": "A collection of UI utilities for the Solid CLI", "main": "./dist/index.mjs", "module": "./dist/index.mjs", diff --git a/packages/ui/src/components/autocomplete/index.ts b/packages/ui/src/components/autocomplete/index.ts index 739ab93..f4ef1b1 100644 --- a/packages/ui/src/components/autocomplete/index.ts +++ b/packages/ui/src/components/autocomplete/index.ts @@ -288,7 +288,9 @@ export const autocomplete = (opts: Omit { for (const update of packageUpdates) { if (update.dev) { await $`${pM.name} ${instlCmd} -D ${update.name}`; - } - else { + } else { await $`${pM.name} ${instlCmd} ${update.name}`; } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9c39a37..cba619f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,9 @@ importers: .: devDependencies: + '@biomejs/biome': + specifier: ^1.7.3 + version: 1.7.3 '@changesets/cli': specifier: 2.27.3 version: 2.27.3 @@ -263,6 +266,59 @@ packages: '@begit/core@0.0.16': resolution: {integrity: sha512-nSgezfX/ixRmVIXP0apKF3ZCeRlxlAD7usZqw0Ku4IExD6COJzT041FPm7vpAkrKxr3U54jHKb1fEeZVHBjEWg==} + '@biomejs/biome@1.7.3': + resolution: {integrity: sha512-ogFQI+fpXftr+tiahA6bIXwZ7CSikygASdqMtH07J2cUzrpjyTMVc9Y97v23c7/tL1xCZhM+W9k4hYIBm7Q6cQ==} + engines: {node: '>=14.21.3'} + hasBin: true + + '@biomejs/cli-darwin-arm64@1.7.3': + resolution: {integrity: sha512-eDvLQWmGRqrPIRY7AIrkPHkQ3visEItJKkPYSHCscSDdGvKzYjmBJwG1Gu8+QC5ed6R7eiU63LEC0APFBobmfQ==} + engines: {node: '>=14.21.3'} + cpu: [arm64] + os: [darwin] + + '@biomejs/cli-darwin-x64@1.7.3': + resolution: {integrity: sha512-JXCaIseKRER7dIURsVlAJacnm8SG5I0RpxZ4ya3dudASYUc68WGl4+FEN03ABY3KMIq7hcK1tzsJiWlmXyosZg==} + engines: {node: '>=14.21.3'} + cpu: [x64] + os: [darwin] + + '@biomejs/cli-linux-arm64-musl@1.7.3': + resolution: {integrity: sha512-c8AlO45PNFZ1BYcwaKzdt46kYbuP6xPGuGQ6h4j3XiEDpyseRRUy/h+6gxj07XovmyxKnSX9GSZ6nVbZvcVUAw==} + engines: {node: '>=14.21.3'} + cpu: [arm64] + os: [linux] + + '@biomejs/cli-linux-arm64@1.7.3': + resolution: {integrity: sha512-phNTBpo7joDFastnmZsFjYcDYobLTx4qR4oPvc9tJ486Bd1SfEVPHEvJdNJrMwUQK56T+TRClOQd/8X1nnjA9w==} + engines: {node: '>=14.21.3'} + cpu: [arm64] + os: [linux] + + '@biomejs/cli-linux-x64-musl@1.7.3': + resolution: {integrity: sha512-UdEHKtYGWEX3eDmVWvQeT+z05T9/Sdt2+F/7zmMOFQ7boANeX8pcO6EkJPK3wxMudrApsNEKT26rzqK6sZRTRA==} + engines: {node: '>=14.21.3'} + cpu: [x64] + os: [linux] + + '@biomejs/cli-linux-x64@1.7.3': + resolution: {integrity: sha512-vnedYcd5p4keT3iD48oSKjOIRPYcjSNNbd8MO1bKo9ajg3GwQXZLAH+0Cvlr+eMsO67/HddWmscSQwTFrC/uPA==} + engines: {node: '>=14.21.3'} + cpu: [x64] + os: [linux] + + '@biomejs/cli-win32-arm64@1.7.3': + resolution: {integrity: sha512-unNCDqUKjujYkkSxs7gFIfdasttbDC4+z0kYmcqzRk6yWVoQBL4dNLcCbdnJS+qvVDNdI9rHp2NwpQ0WAdla4Q==} + engines: {node: '>=14.21.3'} + cpu: [arm64] + os: [win32] + + '@biomejs/cli-win32-x64@1.7.3': + resolution: {integrity: sha512-ZmByhbrnmz/UUFYB622CECwhKIPjJLLPr5zr3edhu04LzbfcOrz16VYeNq5dpO1ADG70FORhAJkaIGdaVBG00w==} + engines: {node: '>=14.21.3'} + cpu: [x64] + os: [win32] + '@changesets/apply-release-plan@7.0.1': resolution: {integrity: sha512-aPdSq/R++HOyfEeBGjEe6LNG8gs0KMSyRETD/J2092OkNq8mOioAxyKjMbvVUdzgr/HTawzMOz7lfw339KnsCA==} @@ -2608,6 +2664,41 @@ snapshots: dependencies: tar: 7.1.0 + '@biomejs/biome@1.7.3': + optionalDependencies: + '@biomejs/cli-darwin-arm64': 1.7.3 + '@biomejs/cli-darwin-x64': 1.7.3 + '@biomejs/cli-linux-arm64': 1.7.3 + '@biomejs/cli-linux-arm64-musl': 1.7.3 + '@biomejs/cli-linux-x64': 1.7.3 + '@biomejs/cli-linux-x64-musl': 1.7.3 + '@biomejs/cli-win32-arm64': 1.7.3 + '@biomejs/cli-win32-x64': 1.7.3 + + '@biomejs/cli-darwin-arm64@1.7.3': + optional: true + + '@biomejs/cli-darwin-x64@1.7.3': + optional: true + + '@biomejs/cli-linux-arm64-musl@1.7.3': + optional: true + + '@biomejs/cli-linux-arm64@1.7.3': + optional: true + + '@biomejs/cli-linux-x64-musl@1.7.3': + optional: true + + '@biomejs/cli-linux-x64@1.7.3': + optional: true + + '@biomejs/cli-win32-arm64@1.7.3': + optional: true + + '@biomejs/cli-win32-x64@1.7.3': + optional: true + '@changesets/apply-release-plan@7.0.1': dependencies: '@babel/runtime': 7.24.4 From e1dcfa28283a6bf83e23abaa797a246cceef67db Mon Sep 17 00:00:00 2001 From: Thomas Beer <71586988+Tommypop2@users.noreply.github.com> Date: Thu, 23 May 2024 22:18:40 +0100 Subject: [PATCH 2/2] Remove prettier --- .prettierignore | 2 -- .prettierrc | 12 ------------ package.json | 1 - pnpm-lock.yaml | 3 --- 4 files changed, 18 deletions(-) delete mode 100644 .prettierignore delete mode 100644 .prettierrc diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index 39e2e9f..0000000 --- a/.prettierignore +++ /dev/null @@ -1,2 +0,0 @@ -**/*.rs -**/*.yaml diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index df8a347..0000000 --- a/.prettierrc +++ /dev/null @@ -1,12 +0,0 @@ -{ - "plugins": [], - "arrowParens": "always", - "htmlWhitespaceSensitivity": "ignore", - "printWidth": 120, - "semi": true, - "tabWidth": 2, - "trailingComma": "all", - "useTabs": true, - "quoteProps": "consistent", - "endOfLine": "auto" -} diff --git a/package.json b/package.json index 4d9aa0d..dd07a0c 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,6 @@ "@biomejs/biome": "^1.7.3", "@changesets/cli": "2.27.3", "nodemon": "^3.1.0", - "prettier": "^3.2.5", "turbo": "^1.13.3", "vitest": "^1.6.0" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cba619f..29be55d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,9 +17,6 @@ importers: nodemon: specifier: ^3.1.0 version: 3.1.0 - prettier: - specifier: ^3.2.5 - version: 3.2.5 turbo: specifier: ^1.13.3 version: 1.13.3