Skip to content

Commit a8f6b23

Browse files
chore: align knip.jsonc lines to Prettier (#1180)
## PR Checklist - [x] Addresses an existing open issue: fixes #1179 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Puts the `ignoreExportsUsedInFile` properties all on one line, to reduce snapshot size.
1 parent ce0d56a commit a8f6b23

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

knip.jsonc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
"$schema": "https://unpkg.com/knip@latest/schema.json",
33
"entry": ["src/index.ts!", "script/*e2e.js"],
44
"ignoreBinaries": ["gh"],
5-
"ignoreExportsUsedInFile": {
6-
"interface": true,
7-
"type": true
8-
},
5+
"ignoreExportsUsedInFile": { "interface": true, "type": true },
96
"project": ["src/**/*.ts!", "script/**/*.js"]
107
}

script/__snapshots__/migrate-test-e2e.js.snap

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,9 @@ exports[`expected file changes > knip.jsonc 1`] = `
204204
"$schema": "https://unpkg.com/knip@latest/schema.json",
205205
- "entry": ["src/index.ts!", "script/*e2e.js"],
206206
- "ignoreBinaries": ["gh"],
207-
- "ignoreExportsUsedInFile": {
208-
- "interface": true,
209-
- "type": true
210-
- },
211-
- "project": ["src/**/*.ts!", "script/**/*.js"]
212207
+ "entry": ["src/index.ts!"],
213-
+ "ignoreExportsUsedInFile": { "interface": true, "type": true },
208+
"ignoreExportsUsedInFile": { "interface": true, "type": true },
209+
- "project": ["src/**/*.ts!", "script/**/*.js"]
214210
+ "project": ["src/**/*.ts!"]
215211
}"
216212
`;

0 commit comments

Comments
 (0)