Skip to content

Commit 3e47096

Browse files
committed
Update prettier-plugin-packagejson
matzkoh/prettier-plugin-packagejson#270
1 parent a99941a commit 3e47096

File tree

4 files changed

+1
-31
lines changed

4 files changed

+1
-31
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"dependencies": {
3434
"@prettier/plugin-oxc": "^0.1.3",
3535
"klona": "^2.0.6",
36-
"prettier-plugin-packagejson": "2.5.20",
36+
"prettier-plugin-packagejson": "^2.5.21",
3737
"prettier-plugin-sh": "^0.18.0",
3838
"prettier-plugin-sort-json": "4.1.1"
3939
},

src/types/index.test.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,7 @@ test('extends Prettier’s `Options` with supported plugin properties', () => {
1010
.toHaveProperty('jsonSortOrder')
1111
.toEqualTypeOf<string | undefined>();
1212

13-
expectTypeOf<Options>()
14-
.toHaveProperty('packageSortOrder')
15-
.toEqualTypeOf<string[] | undefined>();
16-
1713
expectTypeOf<Options>()
1814
.toHaveProperty('useTabs')
1915
.toEqualTypeOf<boolean | undefined>();
2016
});
21-
22-
test('provides the types for `prettier-plugin-packagejson`', () => {
23-
/* oxlint-disable-next-line consistent-type-imports */
24-
type PrettierPlugin = typeof import('prettier-plugin-packagejson');
25-
26-
expectTypeOf<PrettierPlugin>().not.toBeAny();
27-
expectTypeOf<PrettierPlugin>().not.toBeNever();
28-
29-
expectTypeOf<PrettierPlugin>().toHaveProperty('options');
30-
expectTypeOf<PrettierPlugin>().toHaveProperty('parsers');
31-
expectTypeOf<PrettierPlugin>().toHaveProperty('testPath');
32-
});

src/types/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,5 @@ declare module 'prettier' {
66
// https://github.com/Gudahtt/prettier-plugin-sort-json/pull/292
77
jsonRecursiveSort?: boolean | undefined;
88
jsonSortOrder?: string | undefined;
9-
10-
// Pending pull request:
11-
// https://github.com/matzkoh/prettier-plugin-packagejson/pull/270
12-
packageSortOrder?: string[] | undefined;
139
}
1410
}

src/types/vendor.d.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)