forked from devpool-directory/devpool-directory
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathknip.ts
More file actions
30 lines (28 loc) · 923 Bytes
/
knip.ts
File metadata and controls
30 lines (28 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import type { KnipConfig } from "knip";
const config: KnipConfig = {
entry: ["build/index.ts", ".github/empty-string-checker.ts"],
project: ["src/**/*.ts", ".github/**/*.ts"],
ignore: ["src/types/config.ts", "**/__mocks__/**", "**/__fixtures__/**", "src/directory/set-state-changes.ts"],
ignoreExportsUsedInFile: true,
// eslint can also be safely ignored as per the docs: https://knip.dev/guides/handling-issues#eslint--jest
ignoreDependencies: [
"eslint-config-prettier",
"eslint-plugin-prettier",
"@types/jest",
"@commitlint/cli",
"@octokit/types",
"@types/twitter",
"esbuild",
"lint-staged",
"@jest/globals",
"@octokit/plugin-rest-endpoint-methods",
"@actions/core",
"simple-git",
"@cspell/dict-node",
"@cspell/dict-software-terms",
"@cspell/dict-typescript"
],
ignoreBinaries: ["format:cspell"],
eslint: true,
};
export default config;