A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.
fix(deps): update dependency typescript-eslint to ^8.28.0 (#2693)
homarr-renovate[bot]f6246115405c
diff --git a/packages/api/src/router/kubernetes/kubernetes-client.ts b/packages/api/src/router/kubernetes/kubernetes-client.tsindex c0cb907aa..29714b358 100644--- a/packages/api/src/router/kubernetes/kubernetes-client.ts+++ b/packages/api/src/router/kubernetes/kubernetes-client.ts@@ -65,9 +65,7 @@ export class KubernetesClient {}public static getInstance(): KubernetesClient {- if (!KubernetesClient.instance) {- KubernetesClient.instance = new KubernetesClient();- }+ KubernetesClient.instance ??= new KubernetesClient();return KubernetesClient.instance;}}diff --git a/packages/common/src/url.ts b/packages/common/src/url.tsindex 9e974a73e..8efbb968c 100644--- a/packages/common/src/url.ts+++ b/packages/common/src/url.ts@@ -8,12 +8,9 @@ export const extractBaseUrlFromHeaders = (headers: ReadonlyHeaders,fallbackProtocol: "http" | "https" = "http",): `${string}://${string}` => {- let protocol = headers.get("x-forwarded-proto");-- // If the protocol is not set or an empty string- if (!protocol) {- protocol = fallbackProtocol;- }+ // For empty string we also use the fallback protocol+ // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing+ let protocol = headers.get("x-forwarded-proto") || fallbackProtocol;// @see https://support.glitch.com/t/x-forwarded-proto-contains-multiple-protocols/17219if (protocol.includes(",")) {diff --git a/packages/log/src/redis-transport.ts b/packages/log/src/redis-transport.tsindex d56bb8302..2647a392d 100644--- a/packages/log/src/redis-transport.ts+++ b/packages/log/src/redis-transport.ts@@ -17,10 +17,8 @@ export class RedisTransport extends Transport {this.emit("logged", info);});- if (!this.redis) {- // Is only initialized here because it did not work when initialized in the constructor or outside the class- this.redis = new Redis();- }+ // Is only initialized here because it did not work when initialized in the constructor or outside the class+ this.redis ??= new Redis();this.redis.publish(diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 836684788..a14e9aab8 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -2189,7 +2189,7 @@ importers:version: 2.4.4([email protected])([email protected])eslint-plugin-import:specifier: ^2.31.0- version: 2.31.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])+ version: 2.31.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])eslint-plugin-jsx-a11y:specifier: ^6.10.2version: 6.10.2([email protected])@@ -2200,8 +2200,8 @@ importers:specifier: ^5.2.0version: 5.2.0([email protected])typescript-eslint:- specifier: ^8.27.0- version: 8.27.0([email protected])([email protected])+ specifier: ^8.28.0+ version: 8.28.0([email protected])([email protected])devDependencies:'@homarr/prettier-config':specifier: workspace:^0.1.0@@ -4845,51 +4845,51 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-4YnrRemBShWRO2QjvUin8ESA41rH+9nQGLUGZV/1IDhi3SL9OhdpNC/MrulTWuptXKwhx/aDxE7toV0f/ypIXQ==}- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-4henw4zkePi5p252c8ncBLzLce52SEUz2Ebj8faDnuUXz2UuHEONYcJ+G0oaCF+bYCWVZtrGzq3FD7YXetmnSA==}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-lvFK3TCGAHsItNdWZ/1FkvpzCxTHUVuFrdnOGLMa0GGCFIbCgQWVk3CzCGdA7kM3qGVc+dfW9tr0Z/sHnGDFyg==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}peerDependencies:'@typescript-eslint/parser': ^8.0.0 || ^8.0.0-alpha.0eslint: ^8.57.0 || ^9.0.0typescript: '>=4.8.4 <5.9.0'- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-XGwIabPallYipmcOk45DpsBSgLC64A0yvdAkrwEzwZ2viqGqRUJ8eEYoPz0CWnutgAFbNMPdsGGvzjSmcWVlEA==}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-LPcw1yHD3ToaDEoljFEfQ9j2xShY367h7FZ1sq5NJT9I3yj4LHer1Xd1yRSOdYy9BpsrxU7R+eoDokChYM53lQ==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}peerDependencies:eslint: ^8.57.0 || ^9.0.0typescript: '>=4.8.4 <5.9.0'- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-8oI9GwPMQmBryaaxG1tOZdxXVeMDte6NyJA4i7/TWa4fBwgnAXYlIQP+uYOeqAaLJ2JRxlG9CAyL+C+YE9Xknw==}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-u2oITX3BJwzWCapoZ/pXw6BCOl8rJP4Ij/3wPoGvY8XwvXflOzd1kLrDUUUAIEdJSFh+ASwdTHqtan9xSg8buw==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-wVArTVcz1oJOIEJxui/nRhV0TXzD/zMSOYi/ggCfNq78EIszddXcJb7r4RCp/oBrjt8n9A0BSxRMKxHftpDxDA==}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-oRoXu2v0Rsy/VoOGhtWrOKDiIehvI+YNrDk5Oqj40Mwm0Yt01FC/Q7nFqg088d3yAsR1ZcZFVfPCTTFCe/KPwg==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}peerDependencies:eslint: ^8.57.0 || ^9.0.0typescript: '>=4.8.4 <5.9.0'- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-/6cp9yL72yUHAYq9g6DsAU+vVfvQmd1a8KyA81uvfDE21O2DwQ/qxlM4AR8TSdAu+kJLBDrEHKC5/W2/nxsY0A==}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-bn4WS1bkKEjx7HqiwG2JNB3YJdC1q6Ue7GyGlwPHyt0TnVq6TtD/hiOdTZt71sq0s7UzqBFXD8t8o2e63tXgwA==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-BnKq8cqPVoMw71O38a1tEb6iebEgGA80icSxW7g+kndx0o6ot6696HjG7NdgfuAVmVEtwXUr3L8R9ZuVjoQL6A==}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-H74nHEeBGeklctAVUvmDkxB1mk+PAZ9FiOMPFncdqeRBXxk1lWSYraHw8V12b7aa6Sg9HOBNbGdSHobBPuQSuA==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}peerDependencies:typescript: '>=4.8.4 <5.9.0'- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-njkodcwH1yvmo31YWgRHNb/x1Xhhq4/m81PhtvmRngD8iHPehxffz1SNCO+kwaePhATC+kOa/ggmvPoPza5i0Q==}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-OELa9hbTYciYITqgurT1u/SzpQVtDLmQMFzy/N8pQE+tefOyCWT79jHsav294aTqV1q1u+VzqDGbuujvRYaeSQ==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}peerDependencies:eslint: ^8.57.0 || ^9.0.0typescript: '>=4.8.4 <5.9.0'- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-WsXQwMkILJvffP6z4U3FYJPlbf/j07HIxmDjZpbNvBJkMfvwXj5ACRkkHwBDvLBbDbtX5TdU64/rcvKJ/vuInQ==}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-hbn8SZ8w4u2pRwgQ1GlUrPKE+t2XvcCW5tTRF7j6SMYIuYG37XuzIW44JCZPa36evi0Oy2SnM664BlIaAuQcvg==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}'@umami/[email protected]':@@ -9944,8 +9944,8 @@ packages:resolution: {integrity: sha512-1HTsf5/QVRmLzcGfldPFvkVsAdi1db1BBKzi7iW3KBUlOICg/nKnFS+jGqDJS3YD8VsWbAh7JiHeBvbsw8RPxA==}- resolution: {integrity: sha512-ZZ/8+Y0rRUMuW1gJaPtLWe4ryHbsPLzzibk5Sq+IFa2aOH1Vo0gPr1fbA6pOnzBke7zC2Da4w8AyCgxKXo3lqA==}+ resolution: {integrity: sha512-jfZtxJoHm59bvoCMYCe2BM0/baMswRhMmYhy+w6VfcyHrjxZ0OJe0tGasydCpIpA+A/WIJhTyZfb3EtwNC/kHQ==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}peerDependencies:eslint: ^8.57.0 || ^9.0.0@@ -13225,14 +13225,14 @@ snapshots:dependencies:'@types/node': 22.13.13- '@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])':+ '@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])':dependencies:'@eslint-community/regexpp': 4.12.1- '@typescript-eslint/parser': 8.27.0([email protected])([email protected])- '@typescript-eslint/scope-manager': 8.27.0- '@typescript-eslint/type-utils': 8.27.0([email protected])([email protected])- '@typescript-eslint/utils': 8.27.0([email protected])([email protected])- '@typescript-eslint/visitor-keys': 8.27.0+ '@typescript-eslint/parser': 8.28.0([email protected])([email protected])+ '@typescript-eslint/scope-manager': 8.28.0+ '@typescript-eslint/type-utils': 8.28.0([email protected])([email protected])+ '@typescript-eslint/utils': 8.28.0([email protected])([email protected])+ '@typescript-eslint/visitor-keys': 8.28.0eslint: 9.23.0graphemer: 1.4.0ignore: 5.3.2@@ -13242,27 +13242,27 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:- '@typescript-eslint/scope-manager': 8.27.0- '@typescript-eslint/types': 8.27.0- '@typescript-eslint/typescript-estree': 8.27.0([email protected])- '@typescript-eslint/visitor-keys': 8.27.0+ '@typescript-eslint/scope-manager': 8.28.0+ '@typescript-eslint/types': 8.28.0+ '@typescript-eslint/typescript-estree': 8.28.0([email protected])+ '@typescript-eslint/visitor-keys': 8.28.0debug: 4.4.0eslint: 9.23.0typescript: 5.8.2transitivePeerDependencies:- supports-color- '@typescript-eslint/[email protected]':+ '@typescript-eslint/[email protected]':dependencies:- '@typescript-eslint/types': 8.27.0- '@typescript-eslint/visitor-keys': 8.27.0+ '@typescript-eslint/types': 8.28.0+ '@typescript-eslint/visitor-keys': 8.28.0dependencies:- '@typescript-eslint/typescript-estree': 8.27.0([email protected])- '@typescript-eslint/utils': 8.27.0([email protected])([email protected])+ '@typescript-eslint/typescript-estree': 8.28.0([email protected])+ '@typescript-eslint/utils': 8.28.0([email protected])([email protected])debug: 4.4.0eslint: 9.23.0ts-api-utils: 2.0.1([email protected])@@ -13270,12 +13270,12 @@ snapshots:transitivePeerDependencies:- supports-color- '@typescript-eslint/[email protected]': {}+ '@typescript-eslint/[email protected]': {}- '@typescript-eslint/[email protected]([email protected])':+ '@typescript-eslint/[email protected]([email protected])':dependencies:- '@typescript-eslint/types': 8.27.0- '@typescript-eslint/visitor-keys': 8.27.0+ '@typescript-eslint/types': 8.28.0+ '@typescript-eslint/visitor-keys': 8.28.0debug: 4.4.0fast-glob: 3.3.2is-glob: 4.0.3@@ -13286,20 +13286,20 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:'@eslint-community/eslint-utils': 4.4.0([email protected])- '@typescript-eslint/scope-manager': 8.27.0- '@typescript-eslint/types': 8.27.0- '@typescript-eslint/typescript-estree': 8.27.0([email protected])+ '@typescript-eslint/scope-manager': 8.28.0+ '@typescript-eslint/types': 8.28.0+ '@typescript-eslint/typescript-estree': 8.28.0([email protected])eslint: 9.23.0typescript: 5.8.2transitivePeerDependencies:- supports-color- '@typescript-eslint/[email protected]':+ '@typescript-eslint/[email protected]':dependencies:- '@typescript-eslint/types': 8.27.0+ '@typescript-eslint/types': 8.28.0eslint-visitor-keys: 4.2.0'@umami/[email protected]': {}@@ -15033,17 +15033,17 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]):+ [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]):dependencies:debug: 3.2.7optionalDependencies:- '@typescript-eslint/parser': 8.27.0([email protected])([email protected])+ '@typescript-eslint/parser': 8.28.0([email protected])([email protected])eslint: 9.23.0eslint-import-resolver-node: 0.3.9transitivePeerDependencies:- supports-color- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]):+ [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]):dependencies:'@rtsao/scc': 1.1.0array-includes: 3.1.8@@ -15054,7 +15054,7 @@ snapshots:doctrine: 2.1.0eslint: 9.23.0eslint-import-resolver-node: 0.3.9- eslint-module-utils: 2.12.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ eslint-module-utils: 2.12.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])hasown: 2.0.2is-core-module: 2.15.1is-glob: 4.0.3@@ -15066,7 +15066,7 @@ snapshots:string.prototype.trimend: 1.0.8tsconfig-paths: 3.15.0optionalDependencies:- '@typescript-eslint/parser': 8.27.0([email protected])([email protected])+ '@typescript-eslint/parser': 8.28.0([email protected])([email protected])transitivePeerDependencies:- eslint-import-resolver-typescript- eslint-import-resolver-webpack@@ -19007,11 +19007,11 @@ snapshots:dependencies:ts-toolbelt: 9.6.0dependencies:- '@typescript-eslint/eslint-plugin': 8.27.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])- '@typescript-eslint/parser': 8.27.0([email protected])([email protected])- '@typescript-eslint/utils': 8.27.0([email protected])([email protected])+ '@typescript-eslint/eslint-plugin': 8.28.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ '@typescript-eslint/parser': 8.28.0([email protected])([email protected])+ '@typescript-eslint/utils': 8.28.0([email protected])([email protected])eslint: 9.23.0typescript: 5.8.2transitivePeerDependencies:diff --git a/tooling/eslint/package.json b/tooling/eslint/package.jsonindex 92294a93c..a82c2861d 100644--- a/tooling/eslint/package.json+++ b/tooling/eslint/package.json@@ -24,7 +24,7 @@"eslint-plugin-jsx-a11y": "^6.10.2","eslint-plugin-react": "^7.37.4","eslint-plugin-react-hooks": "^5.2.0",- "typescript-eslint": "^8.27.0"+ "typescript-eslint": "^8.28.0"},"devDependencies": {"@homarr/prettier-config": "workspace:^0.1.0",