@so1ve/prettier-config 0.117.4 → 0.119.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.
Files changed (2) hide show
  1. package/index.js +13 -3
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  // @ts-check
2
2
 
3
- const plugins = ["astro", "toml", "curly-and-jsdoc", "pkgsort"].map((p) =>
4
- require.resolve(`prettier-plugin-${p}`),
5
- );
3
+ const plugins = [
4
+ ...["astro", "curly-and-jsdoc", "pkgsort"].map((p) =>
5
+ require.resolve(`prettier-plugin-${p}`),
6
+ ),
7
+ require.resolve("@so1ve/prettier-plugin-toml"),
8
+ ];
6
9
 
7
10
  module.exports = {
8
11
  useTabs: true,
@@ -22,11 +25,18 @@ module.exports = {
22
25
  trailingComma: "none",
23
26
  },
24
27
  },
28
+ {
29
+ files: "pnpm-lock.yaml",
30
+ options: {
31
+ requirePragma: true,
32
+ },
33
+ },
25
34
  ],
26
35
  plugins,
27
36
 
28
37
  // Plugin Options
29
38
  // JSDoc
30
39
  jsdocPreferCodeFences: true,
40
+ jsdocSingleLineComment: false,
31
41
  tsdoc: true,
32
42
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@so1ve/prettier-config",
3
- "version": "0.117.4",
3
+ "version": "0.119.0",
4
4
  "author": "Ray <i@mk1.io> (https://github.com/so1ve/)",
5
5
  "description": "Ray's prettier config.",
6
6
  "keywords": [
@@ -26,8 +26,8 @@
26
26
  "dependencies": {
27
27
  "prettier-plugin-astro": "^0.11.0",
28
28
  "prettier-plugin-pkgsort": "^0.2.0",
29
- "prettier-plugin-toml": "^0.3.1",
30
- "prettier-plugin-curly-and-jsdoc": "0.117.4"
29
+ "prettier-plugin-curly-and-jsdoc": "0.119.0",
30
+ "@so1ve/prettier-plugin-toml": "0.119.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "prettier": "^3.0.0"