@sister.software/oxfmt-config 12.1.3 → 13.0.1

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/out/index.d.ts CHANGED
@@ -11,9 +11,8 @@ export type OxfmtConfig = Record<string, unknown>;
11
11
  /**
12
12
  * Sister Software's oxfmt configuration.
13
13
  *
14
- * Ported from the prior Prettier config. oxfmt natively covers what used to require Prettier plugins: `jsdoc` (JSDoc
15
- * comment formatting), `sortPackageJson` (package.json key ordering), and `sortImports` (import organization).
16
- * Consumers spread it into their own `oxfmt.config.ts`:
14
+ * Covers JSDoc formatting, package.json key ordering, and import organization. Consumers spread it into their own
15
+ * `oxfmt.config.ts`:
17
16
  *
18
17
  * ```ts
19
18
  * import { sisterSoftwareOxfmtConfig } from "@sister.software/oxfmt-config"
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEjD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,yBAAyB,EAAE,WAoBvC,CAAA;eAEc,yBAAyB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEjD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,EAAE,WAiBvC,CAAA;eAEc,yBAAyB"}
package/out/index.js CHANGED
@@ -7,9 +7,8 @@
7
7
  /**
8
8
  * Sister Software's oxfmt configuration.
9
9
  *
10
- * Ported from the prior Prettier config. oxfmt natively covers what used to require Prettier plugins: `jsdoc` (JSDoc
11
- * comment formatting), `sortPackageJson` (package.json key ordering), and `sortImports` (import organization).
12
- * Consumers spread it into their own `oxfmt.config.ts`:
10
+ * Covers JSDoc formatting, package.json key ordering, and import organization. Consumers spread it into their own
11
+ * `oxfmt.config.ts`:
13
12
  *
14
13
  * ```ts
15
14
  * import { sisterSoftwareOxfmtConfig } from "@sister.software/oxfmt-config"
@@ -23,18 +22,15 @@ export const sisterSoftwareOxfmtConfig = {
23
22
  semi: false,
24
23
  trailingComma: "es5",
25
24
  bracketSpacing: true,
26
- // JSDoc comment formatting (replaces prettier-plugin-jsdoc). `commentLineStrategy: "keep"`
27
- // preserves the author's single- vs multi-line choice (the prior jsdocCommentLineStrategy: "keep"),
28
- // rather than oxfmt's default of collapsing short comments to one line.
25
+ // Preserve the author's single- vs multi-line JSDoc choice rather than collapsing short comments.
29
26
  jsdoc: {
30
27
  commentLineStrategy: "keep",
31
28
  // Blank line between the last @param and @returns.
32
29
  separateReturnsFromParam: true,
33
30
  },
34
- // package.json key ordering (replaces prettier-plugin-packagejson).
31
+ // package.json key ordering.
35
32
  sortPackageJson: true,
36
- // Import organization (replaces prettier-plugin-organize-imports). Pass an object instead of
37
- // `true` to customize groups — see oxfmt's SortImportsUserConfig.
33
+ // Pass an object instead of `true` to customize import groups; see oxfmt's SortImportsUserConfig.
38
34
  sortImports: true,
39
35
  };
40
36
  export default sisterSoftwareOxfmtConfig;
package/out/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAgB;IACrD,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,CAAC;IACX,UAAU,EAAE,GAAG;IACf,IAAI,EAAE,KAAK;IACX,aAAa,EAAE,KAAK;IACpB,cAAc,EAAE,IAAI;IACpB,2FAA2F;IAC3F,oGAAoG;IACpG,wEAAwE;IACxE,KAAK,EAAE;QACN,mBAAmB,EAAE,MAAM;QAC3B,mDAAmD;QACnD,wBAAwB,EAAE,IAAI;KAC9B;IACD,oEAAoE;IACpE,eAAe,EAAE,IAAI;IACrB,6FAA6F;IAC7F,kEAAkE;IAClE,WAAW,EAAE,IAAI;CACjB,CAAA;AAED,eAAe,yBAAyB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAgB;IACrD,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,CAAC;IACX,UAAU,EAAE,GAAG;IACf,IAAI,EAAE,KAAK;IACX,aAAa,EAAE,KAAK;IACpB,cAAc,EAAE,IAAI;IACpB,kGAAkG;IAClG,KAAK,EAAE;QACN,mBAAmB,EAAE,MAAM;QAC3B,mDAAmD;QACnD,wBAAwB,EAAE,IAAI;KAC9B;IACD,6BAA6B;IAC7B,eAAe,EAAE,IAAI;IACrB,kGAAkG;IAClG,WAAW,EAAE,IAAI;CACjB,CAAA;AAED,eAAe,yBAAyB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sister.software/oxfmt-config",
3
- "version": "12.1.3",
3
+ "version": "13.0.1",
4
4
  "description": "Sister Software's oxfmt config",
5
5
  "license": "AGPL-3.0",
6
6
  "author": "teffen@sister.software",
package/src/index.ts CHANGED
@@ -13,9 +13,8 @@ export type OxfmtConfig = Record<string, unknown>
13
13
  /**
14
14
  * Sister Software's oxfmt configuration.
15
15
  *
16
- * Ported from the prior Prettier config. oxfmt natively covers what used to require Prettier plugins: `jsdoc` (JSDoc
17
- * comment formatting), `sortPackageJson` (package.json key ordering), and `sortImports` (import organization).
18
- * Consumers spread it into their own `oxfmt.config.ts`:
16
+ * Covers JSDoc formatting, package.json key ordering, and import organization. Consumers spread it into their own
17
+ * `oxfmt.config.ts`:
19
18
  *
20
19
  * ```ts
21
20
  * import { sisterSoftwareOxfmtConfig } from "@sister.software/oxfmt-config"
@@ -29,18 +28,15 @@ export const sisterSoftwareOxfmtConfig: OxfmtConfig = {
29
28
  semi: false,
30
29
  trailingComma: "es5",
31
30
  bracketSpacing: true,
32
- // JSDoc comment formatting (replaces prettier-plugin-jsdoc). `commentLineStrategy: "keep"`
33
- // preserves the author's single- vs multi-line choice (the prior jsdocCommentLineStrategy: "keep"),
34
- // rather than oxfmt's default of collapsing short comments to one line.
31
+ // Preserve the author's single- vs multi-line JSDoc choice rather than collapsing short comments.
35
32
  jsdoc: {
36
33
  commentLineStrategy: "keep",
37
34
  // Blank line between the last @param and @returns.
38
35
  separateReturnsFromParam: true,
39
36
  },
40
- // package.json key ordering (replaces prettier-plugin-packagejson).
37
+ // package.json key ordering.
41
38
  sortPackageJson: true,
42
- // Import organization (replaces prettier-plugin-organize-imports). Pass an object instead of
43
- // `true` to customize groups — see oxfmt's SortImportsUserConfig.
39
+ // Pass an object instead of `true` to customize import groups; see oxfmt's SortImportsUserConfig.
44
40
  sortImports: true,
45
41
  }
46
42