From 96b436c2346e083313feb4088520b532b6f68774 Mon Sep 17 00:00:00 2001 From: Frank Lyder Bredland Date: Tue, 30 Jan 2024 04:09:41 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Initial=20Biome=20&=20Turbo=20se?= =?UTF-8?q?tup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the future this the config files needs to be adopted to the project. As well as Github Actions. This is just a first step for setup. Fixes #160 Fixes #158 --- .prettierignore | 13 ------- .prettierrc | 6 ---- biome.json | 34 ++++++++++++++++++ package.json | 6 ++++ turbo.json | 3 ++ yarn.lock | 95 +++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 138 insertions(+), 19 deletions(-) delete mode 100644 .prettierignore delete mode 100644 .prettierrc create mode 100644 biome.json create mode 100644 turbo.json diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index 258a20bf5..000000000 --- a/.prettierignore +++ /dev/null @@ -1,13 +0,0 @@ -shared/api-paths.js -.yarn -yarn.lock -.gitignore -*.svg -**/dist/ -*.xml -*.code-workspace -.eslintignore -*.snap -*.yaml -*.bicep -*.ps1 diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index cd3fb1b6c..000000000 --- a/.prettierrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "endOfLine": "auto", - "jsxSingleQuote": true, - "printWidth": 100, - "singleQuote": true -} diff --git a/biome.json b/biome.json new file mode 100644 index 000000000..8f9fd52a8 --- /dev/null +++ b/biome.json @@ -0,0 +1,34 @@ +{ + "$schema": "https://biomejs.dev/schemas/1.5.3/schema.json", + "organizeImports": { + "enabled": true + }, + "formatter": { + "enabled": true, + "lineWidth": 120, + "lineEnding": "lf", + "ignore": [] + }, + "javascript": { + "formatter": { + "arrowParentheses":"always", + "quoteStyle": "single", + "jsxQuoteStyle": "double", + "semicolons": "always", + "trailingComma": "all", + "quoteProperties": "asNeeded", + "bracketSpacing": true, + "bracketSameLine": false, + "arrowParentheses": "asNeeded" + } + }, + "linter": { + "enabled": true, + "rules": { + "recommended": true + } + }, + "files": { + "ignore": [".azure", ".github", "node_modules"] + } +} diff --git a/package.json b/package.json index 911b44c78..abbebd714 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,10 @@ { + "private": true, + "scripts": {}, + "devDependencies": { + "turbo": "1.11.3", + "@biomejs/biome": "^1.5.3" + }, "engines": { "node": ">=20.0" } diff --git a/turbo.json b/turbo.json new file mode 100644 index 000000000..db4a4d696 --- /dev/null +++ b/turbo.json @@ -0,0 +1,3 @@ +{ + "$schema": "https://turbo.build/schema.json" +} diff --git a/yarn.lock b/yarn.lock index fb57ccd13..71464f2c9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,3 +2,98 @@ # yarn lockfile v1 +"@biomejs/biome@^1.5.3": + version "1.5.3" + resolved "https://registry.yarnpkg.com/@biomejs/biome/-/biome-1.5.3.tgz#0762b9f681c247a228522e6c506060e734809d48" + integrity sha512-yvZCa/g3akwTaAQ7PCwPWDCkZs3Qa5ONg/fgOUT9e6wAWsPftCjLQFPXBeGxPK30yZSSpgEmRCfpGTmVbUjGgg== + optionalDependencies: + "@biomejs/cli-darwin-arm64" "1.5.3" + "@biomejs/cli-darwin-x64" "1.5.3" + "@biomejs/cli-linux-arm64" "1.5.3" + "@biomejs/cli-linux-arm64-musl" "1.5.3" + "@biomejs/cli-linux-x64" "1.5.3" + "@biomejs/cli-linux-x64-musl" "1.5.3" + "@biomejs/cli-win32-arm64" "1.5.3" + "@biomejs/cli-win32-x64" "1.5.3" + +"@biomejs/cli-darwin-arm64@1.5.3": + version "1.5.3" + resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.5.3.tgz#8df0a562ca59b7a77151e26f67f45074644fab1c" + integrity sha512-ImU7mh1HghEDyqNmxEZBoMPr8SxekkZuYcs+gynKlNW+TALQs7swkERiBLkG9NR0K1B3/2uVzlvYowXrmlW8hw== + +"@biomejs/cli-darwin-x64@1.5.3": + version "1.5.3" + resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.5.3.tgz#ab5376f15d9e23b60ae2b0b51f7feee38a62bba2" + integrity sha512-vCdASqYnlpq/swErH7FD6nrFz0czFtK4k/iLgj0/+VmZVjineFPgevOb+Sr9vz0tk0GfdQO60bSpI74zU8M9Dw== + +"@biomejs/cli-linux-arm64-musl@1.5.3": + version "1.5.3" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.5.3.tgz#a2ba748a6cf94e2288244294a8e36a7db153982f" + integrity sha512-DYuMizUYUBYfS0IHGjDrOP1RGipqWfMGEvNEJ398zdtmCKLXaUvTimiox5dvx4X15mBK5M2m8wgWUgOP1giUpQ== + +"@biomejs/cli-linux-arm64@1.5.3": + version "1.5.3" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.5.3.tgz#c805d48a4740cadd4fbdc22bf74d86b6e10ed84e" + integrity sha512-cupBQv0sNF1OKqBfx7EDWMSsKwRrBUZfjXawT4s6hKV6ALq7p0QzWlxr/sDmbKMLOaLQtw2Qgu/77N9rm+f9Rg== + +"@biomejs/cli-linux-x64-musl@1.5.3": + version "1.5.3" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.5.3.tgz#b524a85e46724543eb0f3eda143dd62e58d6e148" + integrity sha512-UUHiAnlDqr2Y/LpvshBFhUYMWkl2/Jn+bi3U6jKuav0qWbbBKU/ByHgR4+NBxpKBYoCtWxhnmatfH1bpPIuZMw== + +"@biomejs/cli-linux-x64@1.5.3": + version "1.5.3" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64/-/cli-linux-x64-1.5.3.tgz#3934339eac9ec14307cb73541158cbf1695bfb79" + integrity sha512-YQrSArQvcv4FYsk7Q91Yv4uuu5F8hJyORVcv3zsjCLGkjIjx2RhjYLpTL733SNL7v33GmOlZY0eFR1ko38tuUw== + +"@biomejs/cli-win32-arm64@1.5.3": + version "1.5.3" + resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.5.3.tgz#db337fc521bd046015499d8bbc02835dbd93f01c" + integrity sha512-HxatYH7vf/kX9nrD+pDYuV2GI9GV8EFo6cfKkahAecTuZLPxryHx1WEfJthp5eNsE0+09STGkKIKjirP0ufaZA== + +"@biomejs/cli-win32-x64@1.5.3": + version "1.5.3" + resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-x64/-/cli-win32-x64-1.5.3.tgz#1a424f26b709bc17fc592de18e8f48a6d2a44c86" + integrity sha512-fMvbSouZEASU7mZH8SIJSANDm5OqsjgtVXlbUqxwed6BP7uuHRSs396Aqwh2+VoW8fwTpp6ybIUoC9FrzB0kyA== + +turbo-darwin-64@1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo-darwin-64/-/turbo-darwin-64-1.11.3.tgz#fb51f6fa030ee7a169d383b5f4f7641df6a3bdb8" + integrity sha512-IsOOg2bVbIt3o/X8Ew9fbQp5t1hTHN3fGNQYrPQwMR2W1kIAC6RfbVD4A9OeibPGyEPUpwOH79hZ9ydFH5kifw== + +turbo-darwin-arm64@1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo-darwin-arm64/-/turbo-darwin-arm64-1.11.3.tgz#f936cc7ba5565bd9be1ddc8ef4f15284044a63a5" + integrity sha512-FsJL7k0SaPbJzI/KCnrf/fi3PgCDCjTliMc/kEFkuWVA6Httc3Q4lxyLIIinz69q6JTx8wzh6yznUMzJRI3+dg== + +turbo-linux-64@1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo-linux-64/-/turbo-linux-64-1.11.3.tgz#86f56a91c05eea512a187079f7f7f860d8168be6" + integrity sha512-SvW7pvTVRGsqtSkII5w+wriZXvxqkluw5FO/MNAdFw0qmoov+PZ237+37/NgArqE3zVn1GX9P6nUx9VO+xcQAg== + +turbo-linux-arm64@1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo-linux-arm64/-/turbo-linux-arm64-1.11.3.tgz#0001dab6ded89154e2a5be21e87720daba953056" + integrity sha512-YhUfBi1deB3m+3M55X458J6B7RsIS7UtM3P1z13cUIhF+pOt65BgnaSnkHLwETidmhRh8Dl3GelaQGrB3RdCDw== + +turbo-windows-64@1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo-windows-64/-/turbo-windows-64-1.11.3.tgz#8d03c4fd8a46b81f2aecf60fc9845674c84d15a8" + integrity sha512-s+vEnuM2TiZuAUUUpmBHDr6vnNbJgj+5JYfnYmVklYs16kXh+EppafYQOAkcRIMAh7GjV3pLq5/uGqc7seZeHA== + +turbo-windows-arm64@1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo-windows-arm64/-/turbo-windows-arm64-1.11.3.tgz#cc436d1462f5450e97f985ba6d8d447272bb97db" + integrity sha512-ZR5z5Zpc7cASwfdRAV5yNScCZBsgGSbcwiA/u3farCacbPiXsfoWUkz28iyrx21/TRW0bi6dbsB2v17swa8bjw== + +turbo@1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo/-/turbo-1.11.3.tgz#3bd823043585e1acfe125727bcecd4f91ef2103b" + integrity sha512-RCJOUFcFMQNIGKSjC9YmA5yVP1qtDiBA0Lv9VIgrXraI5Da1liVvl3VJPsoDNIR9eFMyA/aagx1iyj6UWem5hA== + optionalDependencies: + turbo-darwin-64 "1.11.3" + turbo-darwin-arm64 "1.11.3" + turbo-linux-64 "1.11.3" + turbo-linux-arm64 "1.11.3" + turbo-windows-64 "1.11.3" + turbo-windows-arm64 "1.11.3"