Skip to content

Commit

Permalink
copy knip config
Browse files Browse the repository at this point in the history
  • Loading branch information
handeyeco committed Oct 22, 2024
1 parent 7f8027a commit 51e0457
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions knip.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import type {KnipConfig} from "knip";

/**
* knip is a tool for discovering dead code:
* https://knip.dev/
*
* To use: `yarn knip`
*/
const config: KnipConfig = {
entry: [
"{index,main,cli}.{js,cjs,mjs,jsx,ts,cts,mts,tsx}",
Expand All @@ -25,6 +31,9 @@ const config: KnipConfig = {
"data/find-questions.ts",
// there seems to be a bug with the knip Jest plugin?
"jest.config.js",
// this file causes side-effects by importing it
// so it's not "used" in the conventional sense
"packages/perseus/src/util/interactive.ts",
],
};

Expand Down

0 comments on commit 51e0457

Please sign in to comment.