Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ All notable changes to the **Prowler UI** are documented in this file.
- Resource events tool to Lighthouse AI [(#10412)](https://github.com/prowler-cloud/prowler/pull/10412)
- Vercel provider: connect Vercel teams via API token, scan deployments, domains, projects, and team settings [(#10191)](https://github.com/prowler-cloud/prowler/pull/10191)

### 🛠️ Maintenance

- Added knip for dead code detection with `lint:knip` and `lint:knip:fix` scripts [(#10654)](https://github.com/prowler-cloud/prowler/pull/10654)

### 🔄 Changed

- Attack Paths custom openCypher queries now use a code editor with syntax highlighting and line numbers [(#10445)](https://github.com/prowler-cloud/prowler/pull/10445)
Expand Down
8 changes: 8 additions & 0 deletions ui/dependency-log.json
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,14 @@
"strategy": "installed",
"generatedAt": "2026-01-29T16:42:27.795Z"
},
{
"section": "devDependencies",
"name": "knip",
"from": "6.3.1",
"to": "6.3.1",
"strategy": "installed",
"generatedAt": "2026-04-10T11:55:26.693Z"
},
{
"section": "devDependencies",
"name": "lint-staged",
Expand Down
38 changes: 38 additions & 0 deletions ui/knip.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import type { KnipConfig } from "knip";

const config: KnipConfig = {
entry: [
// Next.js app conventions (pages, layouts, errors, route handlers)
"app/**/page.{ts,tsx}",
"app/**/layout.{ts,tsx}",
"app/**/error.{ts,tsx}",
"app/**/route.ts",

// Auth.js configuration
"auth.config.ts",

// Sentry runtime configs (dynamically imported by instrumentation.ts)
"sentry/sentry.server.config.ts",
"sentry/sentry.edge.config.ts",

// Build/postinstall scripts
"scripts/*.js",
],
project: ["**/*.{ts,tsx,js,jsx}"],
ignoreDependencies: [
// Next.js image optimization — loaded at build time, no static import
"sharp",
// Sentry instrumentation hooks — loaded via require() by the runtime
"import-in-the-middle",
"require-in-the-middle",
// @heroui/react re-exports all sub-packages; imports like @heroui/skeleton
// resolve to transitive deps of @heroui/react, not direct dependencies
"@heroui/*",
],
ignoreExportsUsedInFile: {
interface: true,
type: true,
},
};

export default config;
3 changes: 3 additions & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"healthcheck": "pnpm run typecheck && pnpm run lint:check",
"lint:check": "eslint .",
"lint:fix": "eslint . --fix",
"lint:knip": "knip",
"lint:knip:fix": "knip --fix",
"format:check": "./node_modules/.bin/prettier --check ./app",
"format:write": "./node_modules/.bin/prettier --config .prettierrc.json --write ./app",
"prepare": "husky",
Expand Down Expand Up @@ -158,6 +160,7 @@
"globals": "17.0.0",
"husky": "9.1.7",
"jsdom": "27.4.0",
"knip": "6.3.1",
"lint-staged": "15.5.2",
"postcss": "8.4.38",
"prettier": "3.6.2",
Expand Down
Loading
Loading