Merged in chore/configure-knip (pull request #3417)

Add knip configuration

* Add knip configuration


Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2026-01-12 09:07:10 +00:00
parent 99537b13e8
commit d371d45fd2
6 changed files with 458 additions and 72 deletions

77
knip.json Normal file
View File

@@ -0,0 +1,77 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"workspaces": {
".": {
"entry": [
"scripts/**/*.{ts,mts,mjs,js}",
"netlify/netlify-plugin-branch-sync/index.js"
],
"project": ["scripts/**/*.{ts,mts,mjs,js}"]
},
"apps/scandic-web": {
"entry": [
"app/**/*.{ts,tsx}",
"auth.ts",
"auth.dtmc.ts",
"netlify/**/*.{ts,tsx,mts,js}"
],
"project": [
"**/*.{ts,tsx}",
"!**/*.stories.{ts,tsx}",
"!**/*.test.{ts,tsx}",
"!**/*.spec.{ts,tsx}"
]
},
"apps/partner-sas": {
"entry": ["app/**/*.{ts,tsx}", "auth.ts"],
"project": [
"**/*.{ts,tsx}",
"!**/*.stories.{ts,tsx}",
"!**/*.test.{ts,tsx}",
"!**/*.spec.{ts,tsx}"
]
},
"apps/redis-api": {
"entry": ["src/index.ts", "scripts/**/*.ts"],
"project": ["src/**/*.{ts,tsx}", "scripts/**/*.ts"]
},
"apps/scandic-redirect": {
"entry": ["netlify/**/*.{ts,tsx,mts,js}"],
"project": [
"netlify/**/*.{ts,tsx,mts,js}",
"scripts/**/*.{ts,tsx,mts,js}"
]
},
"packages/booking-flow": {
"project": ["lib/**/*.{ts,tsx}", "env/**/*.ts"]
},
"packages/common": {
"project": ["**/*.{ts,tsx}", "!**/*.test.{ts,tsx}", "!**/*.spec.{ts,tsx}"]
},
"packages/design-system": {
"entry": ["generate/generate.ts"],
"project": [
"lib/**/*.{ts,tsx}",
".storybook/**/*.{ts,tsx}",
"generate/**/*.ts"
]
},
"packages/tracking": {
"project": ["lib/**/*.{ts,tsx}"]
},
"packages/trpc": {
"project": ["lib/**/*.{ts,tsx}"]
},
"packages/typescript-config": {
"entry": [],
"project": ["**/*.json"]
}
},
"ignore": [
"**/dist/**",
"**/build/**",
"**/.next/**",
"**/node_modules/**",
"**/netlify.toml"
]
}