Merged in chore/configure-knip (pull request #3417)
Add knip configuration * Add knip configuration Approved-by: Joakim Jäderberg
This commit is contained in:
77
knip.json
Normal file
77
knip.json
Normal 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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user