Skip to content

Commit 6a8036a

Browse files
committed
refactor: update Knip configuration and add eslint-disable comment in issue template
1 parent eb89cf1 commit 6a8036a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/knip.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import type { KnipConfig } from "knip";
22

33
const config: KnipConfig = {
4-
entry: ["src/action.ts", "src/worker.ts"],
5-
project: ["src/", "test/"],
4+
entry: ["src/action.ts"],
5+
project: ["src/**/*.ts", "tests/**/*.ts"],
66
ignore: ["src/types/config.ts", "**/__mocks__/**", "**/__fixtures__/**"],
77
ignoreExportsUsedInFile: true,
8-
// eslint can also be safely ignored as per the docs: https://knip.dev/guides/handling-issues#eslint--jest
9-
ignoreDependencies: ["ts-node", "husky"],
8+
ignoreDependencies: ["ts-node"],
109
eslint: true,
1110
};
1211

tests/__mocks__/issue-template.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @ubiquity-os/no-empty-strings */
12
/**
23
* This is generic and not fully featured, but it is a good
34
* starting point for testing your plugins. Adjust as needed.

0 commit comments

Comments
 (0)