@standard-config/prettier 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,6 +1,14 @@
1
- import "./index-CSe7NnCj.mjs";
2
1
  import { Config } from "prettier";
3
2
 
3
+ //#region src/types/index.d.ts
4
+ declare module 'prettier' {
5
+ interface Options {
6
+ jsonRecursiveSort?: boolean | undefined;
7
+ jsonSortOrder?: string | undefined;
8
+ packageSortOrder?: string[] | undefined;
9
+ }
10
+ }
11
+ //#endregion
4
12
  //#region src/define-config/index.d.ts
5
13
  declare function defineConfig(config?: Config): Config;
6
14
  //#endregion
package/dist/index.mjs CHANGED
@@ -1,4 +1,3 @@
1
- import "./index-CSe7NnCj.d.mts";
2
1
  import * as pluginOxidation from "@prettier/plugin-oxc";
3
2
  import * as pluginPackageJSON from "prettier-plugin-packagejson";
4
3
  import * as pluginSortJSON from "prettier-plugin-sort-json";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@standard-config/prettier",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Curated Prettier config for modern TypeScript projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -1,25 +0,0 @@
1
- import "prettier";
2
-
3
- //#region src/types/vendor.d.ts
4
- // Pending pull request:
5
- // https://github.com/matzkoh/prettier-plugin-packagejson/pull/270
6
- declare module 'prettier-plugin-packagejson' {
7
- import type { Plugin } from 'prettier';
8
- export const testPath: (path: string) => boolean;
9
- export const options: NonNullable<Plugin['options']>;
10
- export const parsers: NonNullable<Plugin['parsers']>;
11
- }
12
- //#endregion
13
- //#region src/types/index.d.ts
14
- declare module 'prettier' {
15
- interface Options {
16
- // Pending pull request:
17
- // https://github.com/Gudahtt/prettier-plugin-sort-json/pull/292
18
- jsonRecursiveSort?: boolean | undefined;
19
- jsonSortOrder?: string | undefined;
20
-
21
- // Pending pull request:
22
- // https://github.com/matzkoh/prettier-plugin-packagejson/pull/270
23
- packageSortOrder?: string[] | undefined;
24
- }
25
- }