Skip to content

Commit

Permalink
add biomejs, config to do formatting only
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc3 committed Feb 18, 2024
1 parent be63a1c commit 2edb2df
Show file tree
Hide file tree
Showing 7 changed files with 109 additions and 4 deletions.
46 changes: 46 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
"files": {
"ignore": [
"**/node_modules/**",
"**/dist/**",
"**/coverage/**",
"**/ts-out/**",
"**/target/**",
"**/.optic/**",
"**/.vscode/**",
"**/.devcontainer/**"
]
},
"organizeImports": {
"enabled": true
},
"formatter": {
"lineWidth": 100,
"indentWidth": 4
},
"linter": {
"enabled": false,
"rules": {
"recommended": true
}
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "master"
},
"overrides": [
{
"include": [
"*.yaml",
"*.yml"
],
"formatter": {
"indentStyle": "space",
"indentWidth": 2
}
}
]
}
1 change: 1 addition & 0 deletions common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"dayjs": "^1.10.4"
},
"devDependencies": {
"@biomejs/biome": "1.5.3",
"eslint-plugin-vitest": "0.3.22",
"vitest": "^1.2.2"
}
Expand Down
1 change: 1 addition & 0 deletions packages/ott-vis-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
},
"dependencies": {},
"devDependencies": {
"@biomejs/biome": "1.5.3",
"@typescript-eslint/eslint-plugin": "6.14.0",
"@typescript-eslint/parser": "6.14.0",
"eslint": "7.32.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/ott-vis-datasource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@biomejs/biome": "1.5.3",
"@grafana/e2e": "10.0.3",
"@grafana/e2e-selectors": "10.0.3",
"@grafana/eslint-config": "^6.0.0",
Expand Down Expand Up @@ -62,8 +63,8 @@
"@emotion/css": "11.10.6",
"@grafana/data": "10.0.3",
"@grafana/runtime": "10.0.3",
"@grafana/ui": "10.0.3",
"@grafana/schema": "10.0.3",
"@grafana/ui": "10.0.3",
"ott-vis-common": "*",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
5 changes: 3 additions & 2 deletions packages/ott-vis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@biomejs/biome": "1.5.3",
"@grafana/e2e": "10.0.3",
"@grafana/e2e-selectors": "10.0.3",
"@grafana/eslint-config": "^6.0.0",
Expand All @@ -30,11 +31,11 @@
"@swc/jest": "^0.2.26",
"@testing-library/jest-dom": "6.1.4",
"@testing-library/react": "14.0.0",
"@types/d3": "7.4.3",
"@types/jest": "^29.5.0",
"@types/lodash": "^4.14.194",
"@types/node": "^20.8.7",
"@types/testing-library__jest-dom": "5.14.8",
"@types/d3": "7.4.3",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.7.3",
"d3": "7.8.5",
Expand Down Expand Up @@ -65,8 +66,8 @@
"@emotion/css": "11.10.6",
"@grafana/data": "10.0.3",
"@grafana/runtime": "10.0.3",
"@grafana/ui": "10.0.3",
"@grafana/schema": "10.0.3",
"@grafana/ui": "10.0.3",
"ott-vis-common": "*",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
3 changes: 2 additions & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
"dependencies": {
"@divine/synchronization": "^1.2.1",
"@ffprobe-installer/ffprobe": "2.1.1",
"@liveinstantly/dash-mpd-parser": "0.5.0",
"connect-redis": "7.1.0",
"convict": "^6.2.4",
"express": "^4.17.1",
"express-session": "^1.17.0",
"m3u8-parser": "^6.2.0",
"@liveinstantly/dash-mpd-parser": "0.5.0",
"nocache": "^3.0.0",
"node-abort-controller": "3.0.1",
"node-mailjet": "^6.0.3",
Expand All @@ -48,6 +48,7 @@
"ws": "^7.4.6"
},
"devDependencies": {
"@biomejs/biome": "1.5.3",
"@types/convict": "^6.1.1",
"@types/express": "^4.17.11",
"@types/express-session": "^1.17.3",
Expand Down
54 changes: 54 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,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==

"@braintree/sanitize-url@6.0.2":
version "6.0.2"
resolved "https://registry.yarnpkg.com/@braintree/sanitize-url/-/sanitize-url-6.0.2.tgz#6110f918d273fe2af8ea1c4398a88774bb9fc12f"
Expand Down

0 comments on commit 2edb2df

Please sign in to comment.