Skip to content

Commit

Permalink
chore: add biomejs
Browse files Browse the repository at this point in the history
  • Loading branch information
tutkli committed Feb 6, 2024
1 parent ebd0965 commit f98c0b1
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 3 deletions.
27 changes: 27 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://biomejs.dev/schemas/1.0.0/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
},
"ignore": ["lib"]
},
"formatter": {
"enabled": true,
"formatWithErrors": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 80
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"bracketSameLine": true,
"bracketSpacing": true
}
}
}
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
"prepublish": "yarn run build",
"test:coverage": "jest --coverage",
"test:dev": "jest --verbose --colors --expand --maxWorkers=50% --detectOpenHandles --errorOnDeprecated --bail",
"lint:fix": "npx eslint src/** --fix",
"prettify": "prettier --write .",
"version": "auto-changelog -p -l false && git add CHANGELOG.md"
"version": "auto-changelog -p -l false && git add CHANGELOG.md",
"format": "biome format ./src",
"format:fix": "biome format --write ./src",
"lint": "biome check src",
"lint:ci": "biome ci src",
"lint:fix": "biome check --apply-unsafe ./src"
},
"repository": {
"type": "git",
Expand All @@ -43,6 +46,7 @@
"axios-cache-interceptor": "^1.5.1"
},
"devDependencies": {
"@biomejs/biome": "1.5.3",
"@swc/core": "1.4.0",
"@swc/jest": "0.2.36",
"@types/jest": "29.5.12",
Expand Down
54 changes: 54 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,60 @@
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==

"@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==

"@esbuild/aix-ppc64@0.20.0":
version "0.20.0"
resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.20.0.tgz#509621cca4e67caf0d18561a0c56f8b70237472f"
Expand Down

0 comments on commit f98c0b1

Please sign in to comment.