From 3f9ef1c5688edbec171fb85c7951f50a59f02615 Mon Sep 17 00:00:00 2001 From: mxllv Date: Sat, 17 Oct 2026 21:15:55 +0100 Subject: [PATCH] fix: clean root deps, silence lockfile warning, delete prompt file, add lint-staged - #1449: Remove unused dependencies (chart.js, chartjs-plugin-annotation, react-chartjs-2, @types/react) from root package.json - #1450: Set outputFileTracingRoot in Frontend/next.config.ts and analytics/next.config.ts to silence multiple lockfiles warning - #1451: Delete generate-cilium-prompt.txt (LLM prompt, not needed in repo) - #1452: Add lint-staged as Backend devDependency with eslint config Closes #1449 Closes #1450 Closes #1451 Closes #1452 --- Backend/package.json | 6 +++++- Frontend/next.config.ts | 3 ++- analytics/next.config.ts | 3 ++- generate-cilium-prompt.txt | 19 ------------------- package.json | 6 ------ 5 files changed, 9 insertions(+), 28 deletions(-) delete mode 100644 generate-cilium-prompt.txt diff --git a/Backend/package.json b/Backend/package.json index 6251f773..aec3bdb9 100644 --- a/Backend/package.json +++ b/Backend/package.json @@ -74,7 +74,11 @@ "ts-node": "^10.9.2", "tsconfig-paths": "^4.2.0", "typescript": "^5.7.3", - "typescript-eslint": "^8.20.0" + "typescript-eslint": "^8.20.0", + "lint-staged": "^15.2.0" + }, + "lint-staged": { + "*.ts": "eslint --fix" }, "jest": { "moduleFileExtensions": [ diff --git a/Frontend/next.config.ts b/Frontend/next.config.ts index e9ffa308..fe2fdcd4 100644 --- a/Frontend/next.config.ts +++ b/Frontend/next.config.ts @@ -1,7 +1,8 @@ import type { NextConfig } from "next"; +import path from "path"; const nextConfig: NextConfig = { - /* config options here */ + outputFileTracingRoot: path.join(__dirname), }; export default nextConfig; diff --git a/analytics/next.config.ts b/analytics/next.config.ts index e9ffa308..fe2fdcd4 100644 --- a/analytics/next.config.ts +++ b/analytics/next.config.ts @@ -1,7 +1,8 @@ import type { NextConfig } from "next"; +import path from "path"; const nextConfig: NextConfig = { - /* config options here */ + outputFileTracingRoot: path.join(__dirname), }; export default nextConfig; diff --git a/generate-cilium-prompt.txt b/generate-cilium-prompt.txt deleted file mode 100644 index 8c56456d..00000000 --- a/generate-cilium-prompt.txt +++ /dev/null @@ -1,19 +0,0 @@ -Implement a complete production-ready eBPF network monitoring stack using Cilium and Hubble. - -Create: - -- infrastructure/k8s/cilium/install.yaml -- infrastructure/k8s/cilium/network-policies.yaml -- infrastructure/monitoring/hubble-config.yaml - -Requirements: -- Deploy Cilium as the eBPF CNI. -- Enable Hubble, Hubble Relay, and Hubble UI. -- Enable Prometheus metrics. -- Configure RBAC, Services, ConfigMaps, Deployments, DaemonSets, and ServiceAccounts. -- Create production-ready CiliumNetworkPolicies including default deny, DNS, kube-apiserver, monitoring, ingress controller, frontend→backend, backend→database, and intra-namespace communication. -- Configure service map generation. -- Configure anomaly detection metrics (packet drops, policy denials, DNS failures, TCP retransmissions, HTTP errors). -- Configure Prometheus scraping and alert rules. -- Use Kubernetes stable APIs compatible with Kubernetes v1.30+. -- Generate complete, production-ready YAML with comments and no placeholders. diff --git a/package.json b/package.json index c62de308..f4245c78 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,6 @@ "prepare": "husky" }, "devDependencies": { - "@types/react": "^19.2.14", "husky": "^9.0.0" - }, - "dependencies": { - "chart.js": "^4.5.1", - "chartjs-plugin-annotation": "^3.1.0", - "react-chartjs-2": "^5.3.1" } }