2025-10-14 11:06:31 +00:00
|
|
|
import type { KnipConfig } from 'knip'
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @see https://knip.dev/reference/configuration
|
|
|
|
|
*/
|
|
|
|
|
const config: KnipConfig = {
|
|
|
|
|
entry: [
|
2025-12-31 07:38:07 +00:00
|
|
|
'scripts/**/*.{js,ts,mjs}',
|
|
|
|
|
'bin/**/*.{js,ts,mjs}',
|
2025-10-14 11:06:31 +00:00
|
|
|
],
|
|
|
|
|
ignore: [
|
|
|
|
|
'i18n/**',
|
|
|
|
|
'public/**',
|
|
|
|
|
],
|
|
|
|
|
ignoreBinaries: [
|
2025-12-31 07:38:07 +00:00
|
|
|
'only-allow',
|
2025-10-14 11:06:31 +00:00
|
|
|
],
|
2026-01-10 08:16:18 +00:00
|
|
|
ignoreDependencies: [],
|
2025-10-14 11:06:31 +00:00
|
|
|
rules: {
|
2025-12-31 07:38:07 +00:00
|
|
|
files: 'warn',
|
2025-10-14 11:06:31 +00:00
|
|
|
dependencies: 'warn',
|
|
|
|
|
devDependencies: 'warn',
|
2025-12-31 07:38:07 +00:00
|
|
|
optionalPeerDependencies: 'warn',
|
|
|
|
|
unlisted: 'warn',
|
|
|
|
|
unresolved: 'warn',
|
2025-10-14 11:06:31 +00:00
|
|
|
exports: 'warn',
|
2025-12-31 07:38:07 +00:00
|
|
|
nsExports: 'warn',
|
|
|
|
|
classMembers: 'warn',
|
2025-10-14 11:06:31 +00:00
|
|
|
types: 'warn',
|
2025-12-31 07:38:07 +00:00
|
|
|
nsTypes: 'warn',
|
|
|
|
|
enumMembers: 'warn',
|
2025-10-14 11:06:31 +00:00
|
|
|
duplicates: 'warn',
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default config
|