@so1ve/prettier-config 3.0.0 → 3.2.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 +30 -29
- package/dist/index.js +43 -42
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
|
+
//#region src/index.d.ts
|
|
1
2
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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.
|
|
3
|
+
"version": "3.2.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.
|
|
29
|
+
"prettier-plugin-astro": "^0.14.1",
|
|
30
30
|
"prettier-plugin-pkgsort": "^0.2.1",
|
|
31
|
-
"@so1ve/prettier-plugin-toml": "3.
|
|
32
|
-
"prettier-plugin-curly-and-jsdoc": "3.
|
|
31
|
+
"@so1ve/prettier-plugin-toml": "3.2.0",
|
|
32
|
+
"prettier-plugin-curly-and-jsdoc": "3.2.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"prettier": "^3.0.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
|
-
"build": "
|
|
39
|
-
"watch": "
|
|
38
|
+
"build": "tsdown",
|
|
39
|
+
"watch": "tsdown --watch"
|
|
40
40
|
}
|
|
41
41
|
}
|