@so1ve/prettier-config 3.1.0 → 3.3.0

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.ts CHANGED
@@ -1,31 +1,32 @@
1
+ //#region src/index.d.ts
1
2
  declare const _default: {
2
- useTabs: true;
3
- endOfLine: "lf";
4
- quoteProps: "preserve";
5
- trailingComma: "all";
6
- htmlWhitespaceSensitivity: "ignore";
7
- overrides: ({
8
- files: string[];
9
- options: {
10
- requirePragma: boolean;
11
- };
12
- } | {
13
- files: string;
14
- options: {
15
- parser: "angular";
16
- trailingComma?: undefined;
17
- };
18
- } | {
19
- files: string[];
20
- options: {
21
- trailingComma: "none";
22
- parser?: undefined;
23
- };
24
- })[];
25
- plugins: string[];
26
- jsdocPreferCodeFences: boolean;
27
- jsdocCommentLineStrategy: string;
28
- tsdoc: boolean;
3
+ useTabs: true;
4
+ endOfLine: "lf";
5
+ quoteProps: "preserve";
6
+ trailingComma: "all";
7
+ htmlWhitespaceSensitivity: "ignore";
8
+ overrides: ({
9
+ files: string[];
10
+ options: {
11
+ requirePragma: boolean;
12
+ };
13
+ } | {
14
+ files: string;
15
+ options: {
16
+ parser: "angular";
17
+ trailingComma?: undefined;
18
+ };
19
+ } | {
20
+ files: string[];
21
+ options: {
22
+ trailingComma: "none";
23
+ parser?: undefined;
24
+ };
25
+ })[];
26
+ plugins: string[];
27
+ jsdocPreferCodeFences: boolean;
28
+ jsdocCommentLineStrategy: string;
29
+ tsdoc: boolean;
29
30
  };
30
-
31
- export { _default as default };
31
+ //#endregion
32
+ export { _default as default };
package/dist/index.js CHANGED
@@ -1,45 +1,46 @@
1
- // src/index.ts
2
1
  import { createRequire } from "node:module";
3
- var require2 = createRequire(import.meta.url);
4
- var plugins = [
5
- ...["astro", "curly-and-jsdoc", "pkgsort"].map(
6
- (p) => require2.resolve(`prettier-plugin-${p}`)
7
- ),
8
- require2.resolve("@so1ve/prettier-plugin-toml")
9
- ];
2
+
3
+ //#region src/index.ts
4
+ const require = createRequire(import.meta.url);
5
+ const plugins = [...[
6
+ "astro",
7
+ "curly-and-jsdoc",
8
+ "pkgsort"
9
+ ].map((p) => require.resolve(`prettier-plugin-${p}`)), require.resolve("@so1ve/prettier-plugin-toml")];
10
10
  var src_default = {
11
- useTabs: true,
12
- endOfLine: "lf",
13
- quoteProps: "preserve",
14
- trailingComma: "all",
15
- htmlWhitespaceSensitivity: "ignore",
16
- overrides: [
17
- {
18
- files: "*.html",
19
- options: {
20
- parser: "angular"
21
- }
22
- },
23
- {
24
- files: ["*.json", "*.json5", "*.jsonc", ".eslintrc"],
25
- options: {
26
- trailingComma: "none"
27
- }
28
- },
29
- ...["package-lock.json", "pnpm-lock.yaml", ".yarn/**"].map((filename) => ({
30
- files: [filename],
31
- options: {
32
- requirePragma: true
33
- }
34
- }))
35
- ],
36
- plugins,
37
- // Plugin Options
38
- // JSDoc
39
- jsdocPreferCodeFences: true,
40
- jsdocCommentLineStrategy: "multiline",
41
- tsdoc: true
42
- };
43
- export {
44
- src_default as default
11
+ useTabs: true,
12
+ endOfLine: "lf",
13
+ quoteProps: "preserve",
14
+ trailingComma: "all",
15
+ htmlWhitespaceSensitivity: "ignore",
16
+ overrides: [
17
+ {
18
+ files: "*.html",
19
+ options: { parser: "angular" }
20
+ },
21
+ {
22
+ files: [
23
+ "*.json",
24
+ "*.json5",
25
+ "*.jsonc",
26
+ ".eslintrc"
27
+ ],
28
+ options: { trailingComma: "none" }
29
+ },
30
+ ...[
31
+ "package-lock.json",
32
+ "pnpm-lock.yaml",
33
+ ".yarn/**"
34
+ ].map((filename) => ({
35
+ files: [filename],
36
+ options: { requirePragma: true }
37
+ }))
38
+ ],
39
+ plugins,
40
+ jsdocPreferCodeFences: true,
41
+ jsdocCommentLineStrategy: "multiline",
42
+ tsdoc: true
45
43
  };
44
+
45
+ //#endregion
46
+ export { src_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@so1ve/prettier-config",
3
- "version": "3.1.0",
3
+ "version": "3.3.0",
4
4
  "author": "Ray <i@mk1.io> (https://github.com/so1ve/)",
5
5
  "type": "module",
6
6
  "description": "Ray's prettier config.",
@@ -26,16 +26,16 @@
26
26
  "access": "public"
27
27
  },
28
28
  "dependencies": {
29
- "prettier-plugin-astro": "^0.14.0",
29
+ "prettier-plugin-astro": "^0.14.1",
30
30
  "prettier-plugin-pkgsort": "^0.2.1",
31
- "prettier-plugin-curly-and-jsdoc": "3.1.0",
32
- "@so1ve/prettier-plugin-toml": "3.1.0"
31
+ "prettier-plugin-curly-and-jsdoc": "3.3.0",
32
+ "@so1ve/prettier-plugin-toml": "3.3.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "prettier": "^3.0.0"
36
36
  },
37
37
  "scripts": {
38
- "build": "tsup",
39
- "watch": "tsup --watch"
38
+ "build": "tsdown",
39
+ "watch": "tsdown --watch"
40
40
  }
41
41
  }