knip.config.js

knip.config.js
/** @type {import('knip').KnipConfig} */
export default {
// Entry points - where knip starts tracing dependencies
entry: [
'src/app/**/page.tsx',
'src/app/**/layout.tsx',
// 'src/components/index.ts', // Removed to detect unused component exports
'src/blog/**/*.tsx', // Blog posts are dynamically loaded
'_scripts/**/*.{js,mjs}', // Build scripts run via npm commands
],
// All project files to analyze
project: ['src/**/*.{ts,tsx}', '_scripts/**/*.{js,mjs}'],
// Ignore patterns - files that are intentionally standalone or dynamically used
ignore: [
'_data/**',
// Config files that are used by tools
'src/components/**/config.ts',
'src/components/**/types.ts',

Showing the first 20 lines.

Get full code

Support

Talk to the developers of this project to learn more

We have been building professional websites for big clients for over 15 years. Gallop templates and blocks is our best foundation for SEO websites and web apps.

© 2026 Web Plant Media, LLC