diff --git a/biome.json b/biome.json new file mode 100644 index 000000000..a4285be91 --- /dev/null +++ b/biome.json @@ -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 + } + } + ] +} diff --git a/common/package.json b/common/package.json index fd7b64fe0..84f029d02 100644 --- a/common/package.json +++ b/common/package.json @@ -14,6 +14,7 @@ "dayjs": "^1.10.4" }, "devDependencies": { + "@biomejs/biome": "1.5.3", "eslint-plugin-vitest": "0.3.22", "vitest": "^1.2.2" } diff --git a/packages/ott-vis-common/package.json b/packages/ott-vis-common/package.json index ec83d59a7..5ad291d1e 100644 --- a/packages/ott-vis-common/package.json +++ b/packages/ott-vis-common/package.json @@ -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", diff --git a/packages/ott-vis-datasource/package.json b/packages/ott-vis-datasource/package.json index 05af1d876..1685878f9 100644 --- a/packages/ott-vis-datasource/package.json +++ b/packages/ott-vis-datasource/package.json @@ -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", @@ -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", diff --git a/packages/ott-vis/package.json b/packages/ott-vis/package.json index 28563de36..3d829e072 100644 --- a/packages/ott-vis/package.json +++ b/packages/ott-vis/package.json @@ -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", @@ -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", @@ -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", diff --git a/server/package.json b/server/package.json index c092066bb..c6b70e051 100644 --- a/server/package.json +++ b/server/package.json @@ -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", @@ -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", diff --git a/yarn.lock b/yarn.lock index a0c3dfef5..18be2f56a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"