Skip to content

Commit b5caaec

Browse files
fix sorting
1 parent 8386812 commit b5caaec

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

knip.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"trash-cli"
99
],
1010
"ignoreExportsUsedInFile": { "interface": true, "type": true },
11-
"treatConfigHintsAsErrors": true,
12-
"project": ["src/**/*.ts"]
11+
"project": ["src/**/*.ts"],
12+
"treatConfigHintsAsErrors": true
1313
}

src/blocks/blockKnip.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ describe("blockKnip", () => {
140140
},
141141
],
142142
"files": {
143-
"knip.json": "{"$schema":"https://unpkg.com/[email protected]/schema.json","entry":["src/index.ts"],"ignoreDependencies":["abc","def"],"ignoreExportsUsedInFile":{"interface":true,"type":true},"treatConfigHintsAsErrors":true,"project":["src/**/*.ts"]}",
143+
"knip.json": "{"$schema":"https://unpkg.com/[email protected]/schema.json","entry":["src/index.ts"],"ignoreDependencies":["abc","def"],"ignoreExportsUsedInFile":{"interface":true,"type":true},"project":["src/**/*.ts"],"treatConfigHintsAsErrors":true}",
144144
},
145145
}
146146
`);

src/blocks/blockKnip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ export const blockKnip = base.createBlock({
8181
interface: true,
8282
type: true,
8383
},
84-
treatConfigHintsAsErrors: true,
8584
project: project?.sort(),
85+
treatConfigHintsAsErrors: true,
8686
}),
8787
},
8888
};

0 commit comments

Comments
 (0)