@storm-software/prettier 0.59.181 → 0.59.182

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.
@@ -0,0 +1,16 @@
1
+ //#region src/create-config.ts
2
+ const require$1 = (0, require("node:module").createRequire)(require("url").pathToFileURL(__filename).href);
3
+ function createConfig(json) {
4
+ const { plugins = [], ...rest } = json;
5
+ return {
6
+ ...rest,
7
+ plugins: plugins.map((plugin) => require$1.resolve(plugin))
8
+ };
9
+ }
10
+ //#endregion
11
+ Object.defineProperty(exports, "createConfig", {
12
+ enumerable: true,
13
+ get: function() {
14
+ return createConfig;
15
+ }
16
+ });
@@ -0,0 +1,12 @@
1
+ import { createRequire } from "node:module";
2
+ //#region src/create-config.ts
3
+ const require = createRequire(import.meta.url);
4
+ function createConfig(json) {
5
+ const { plugins = [], ...rest } = json;
6
+ return {
7
+ ...rest,
8
+ plugins: plugins.map((plugin) => require.resolve(plugin))
9
+ };
10
+ }
11
+ //#endregion
12
+ export { createConfig as t };
@@ -0,0 +1,107 @@
1
+ //#endregion
2
+ //#region src/exclude-packagejson.ts
3
+ var exclude_packagejson_default = require("./create-config-CpywOPUk.cjs").createConfig({
4
+ proseWrap: "preserve",
5
+ trailingComma: "none",
6
+ tabWidth: 2,
7
+ semi: true,
8
+ singleQuote: false,
9
+ quoteProps: "as-needed",
10
+ insertPragma: false,
11
+ bracketSameLine: true,
12
+ printWidth: 80,
13
+ bracketSpacing: true,
14
+ arrowParens: "avoid",
15
+ endOfLine: "lf",
16
+ overrides: [
17
+ {
18
+ "files": "**/{*.ts,*.tsx,*.mts,*.cts}",
19
+ "options": {
20
+ "parser": "typescript",
21
+ "singleQuote": false,
22
+ "trailingComma": "none",
23
+ "jsdocDescriptionWithDot": false,
24
+ "jsdocDescriptionTag": true,
25
+ "jsdocCommentLineStrategy": "multiline",
26
+ "jsdocCapitalizeDescription": true,
27
+ "jsdocSeparateTagGroups": true,
28
+ "jsdocPreferCodeFences": true,
29
+ "tsdoc": true
30
+ }
31
+ },
32
+ {
33
+ "files": "**/*.mdx",
34
+ "options": {
35
+ "semi": false,
36
+ "trailingComma": "none",
37
+ "parser": "mdx"
38
+ }
39
+ },
40
+ {
41
+ "files": "**/*.md",
42
+ "options": {
43
+ "semi": false,
44
+ "trailingComma": "none",
45
+ "parser": "markdown"
46
+ }
47
+ },
48
+ {
49
+ "files": "**/*.toml",
50
+ "options": {
51
+ "parser": "toml",
52
+ "alignEntries": true,
53
+ "alignComments": true,
54
+ "arrayAutoExpand": true,
55
+ "arrayAutoCollapse": true,
56
+ "compactArrays": true,
57
+ "compactInlineTables": false,
58
+ "compactEntries": false,
59
+ "indentTables": false,
60
+ "indentEntries": false,
61
+ "reorderKeys": false,
62
+ "allowedBlankLines": 1
63
+ }
64
+ },
65
+ {
66
+ "files": "**/*.svg",
67
+ "options": { "parser": "html" }
68
+ },
69
+ {
70
+ "files": "**/*.json",
71
+ "options": {
72
+ "parser": "json",
73
+ "trailingComma": "none",
74
+ "objectWrap": "preserve"
75
+ }
76
+ },
77
+ {
78
+ "files": "**/*.jsonc",
79
+ "options": {
80
+ "parser": "jsonc",
81
+ "trailingComma": "none",
82
+ "objectWrap": "preserve"
83
+ }
84
+ },
85
+ {
86
+ "files": "**/*.json5",
87
+ "options": {
88
+ "parser": "json5",
89
+ "trailingComma": "none",
90
+ "objectWrap": "preserve"
91
+ }
92
+ },
93
+ {
94
+ "files": "**/*.hbs",
95
+ "options": { "parser": "html" }
96
+ }
97
+ ],
98
+ plugins: [
99
+ "prettier-plugin-sh",
100
+ "prettier-plugin-toml",
101
+ "prettier-plugin-jsdoc",
102
+ "prettier-plugin-organize-imports"
103
+ ],
104
+ organizeImportsSkipDestructiveCodeActions: false
105
+ });
106
+ //#endregion
107
+ module.exports = exclude_packagejson_default;
@@ -0,0 +1,156 @@
1
+ //#region src/exclude-packagejson.d.ts
2
+ declare const _default: Omit<{
3
+ proseWrap: string;
4
+ trailingComma: string;
5
+ tabWidth: number;
6
+ semi: boolean;
7
+ singleQuote: boolean;
8
+ quoteProps: string;
9
+ insertPragma: boolean;
10
+ bracketSameLine: boolean;
11
+ printWidth: number;
12
+ bracketSpacing: boolean;
13
+ arrowParens: string;
14
+ endOfLine: string;
15
+ overrides: ({
16
+ files: string;
17
+ options: {
18
+ parser: string;
19
+ singleQuote: boolean;
20
+ trailingComma: string;
21
+ jsdocDescriptionWithDot: boolean;
22
+ jsdocDescriptionTag: boolean;
23
+ jsdocCommentLineStrategy: string;
24
+ jsdocCapitalizeDescription: boolean;
25
+ jsdocSeparateTagGroups: boolean;
26
+ jsdocPreferCodeFences: boolean;
27
+ tsdoc: boolean;
28
+ semi?: undefined;
29
+ alignEntries?: undefined;
30
+ alignComments?: undefined;
31
+ arrayAutoExpand?: undefined;
32
+ arrayAutoCollapse?: undefined;
33
+ compactArrays?: undefined;
34
+ compactInlineTables?: undefined;
35
+ compactEntries?: undefined;
36
+ indentTables?: undefined;
37
+ indentEntries?: undefined;
38
+ reorderKeys?: undefined;
39
+ allowedBlankLines?: undefined;
40
+ objectWrap?: undefined;
41
+ };
42
+ } | {
43
+ files: string;
44
+ options: {
45
+ semi: boolean;
46
+ trailingComma: string;
47
+ parser: string;
48
+ singleQuote?: undefined;
49
+ jsdocDescriptionWithDot?: undefined;
50
+ jsdocDescriptionTag?: undefined;
51
+ jsdocCommentLineStrategy?: undefined;
52
+ jsdocCapitalizeDescription?: undefined;
53
+ jsdocSeparateTagGroups?: undefined;
54
+ jsdocPreferCodeFences?: undefined;
55
+ tsdoc?: undefined;
56
+ alignEntries?: undefined;
57
+ alignComments?: undefined;
58
+ arrayAutoExpand?: undefined;
59
+ arrayAutoCollapse?: undefined;
60
+ compactArrays?: undefined;
61
+ compactInlineTables?: undefined;
62
+ compactEntries?: undefined;
63
+ indentTables?: undefined;
64
+ indentEntries?: undefined;
65
+ reorderKeys?: undefined;
66
+ allowedBlankLines?: undefined;
67
+ objectWrap?: undefined;
68
+ };
69
+ } | {
70
+ files: string;
71
+ options: {
72
+ parser: string;
73
+ alignEntries: boolean;
74
+ alignComments: boolean;
75
+ arrayAutoExpand: boolean;
76
+ arrayAutoCollapse: boolean;
77
+ compactArrays: boolean;
78
+ compactInlineTables: boolean;
79
+ compactEntries: boolean;
80
+ indentTables: boolean;
81
+ indentEntries: boolean;
82
+ reorderKeys: boolean;
83
+ allowedBlankLines: number;
84
+ singleQuote?: undefined;
85
+ trailingComma?: undefined;
86
+ jsdocDescriptionWithDot?: undefined;
87
+ jsdocDescriptionTag?: undefined;
88
+ jsdocCommentLineStrategy?: undefined;
89
+ jsdocCapitalizeDescription?: undefined;
90
+ jsdocSeparateTagGroups?: undefined;
91
+ jsdocPreferCodeFences?: undefined;
92
+ tsdoc?: undefined;
93
+ semi?: undefined;
94
+ objectWrap?: undefined;
95
+ };
96
+ } | {
97
+ files: string;
98
+ options: {
99
+ parser: string;
100
+ singleQuote?: undefined;
101
+ trailingComma?: undefined;
102
+ jsdocDescriptionWithDot?: undefined;
103
+ jsdocDescriptionTag?: undefined;
104
+ jsdocCommentLineStrategy?: undefined;
105
+ jsdocCapitalizeDescription?: undefined;
106
+ jsdocSeparateTagGroups?: undefined;
107
+ jsdocPreferCodeFences?: undefined;
108
+ tsdoc?: undefined;
109
+ semi?: undefined;
110
+ alignEntries?: undefined;
111
+ alignComments?: undefined;
112
+ arrayAutoExpand?: undefined;
113
+ arrayAutoCollapse?: undefined;
114
+ compactArrays?: undefined;
115
+ compactInlineTables?: undefined;
116
+ compactEntries?: undefined;
117
+ indentTables?: undefined;
118
+ indentEntries?: undefined;
119
+ reorderKeys?: undefined;
120
+ allowedBlankLines?: undefined;
121
+ objectWrap?: undefined;
122
+ };
123
+ } | {
124
+ files: string;
125
+ options: {
126
+ parser: string;
127
+ trailingComma: string;
128
+ objectWrap: string;
129
+ singleQuote?: undefined;
130
+ jsdocDescriptionWithDot?: undefined;
131
+ jsdocDescriptionTag?: undefined;
132
+ jsdocCommentLineStrategy?: undefined;
133
+ jsdocCapitalizeDescription?: undefined;
134
+ jsdocSeparateTagGroups?: undefined;
135
+ jsdocPreferCodeFences?: undefined;
136
+ tsdoc?: undefined;
137
+ semi?: undefined;
138
+ alignEntries?: undefined;
139
+ alignComments?: undefined;
140
+ arrayAutoExpand?: undefined;
141
+ arrayAutoCollapse?: undefined;
142
+ compactArrays?: undefined;
143
+ compactInlineTables?: undefined;
144
+ compactEntries?: undefined;
145
+ indentTables?: undefined;
146
+ indentEntries?: undefined;
147
+ reorderKeys?: undefined;
148
+ allowedBlankLines?: undefined;
149
+ };
150
+ })[];
151
+ plugins: string[];
152
+ organizeImportsSkipDestructiveCodeActions: boolean;
153
+ }, "plugins"> & {
154
+ plugins: string[];
155
+ };
156
+ export = _default;
@@ -0,0 +1,157 @@
1
+ //#region src/exclude-packagejson.d.ts
2
+ declare const _default: Omit<{
3
+ proseWrap: string;
4
+ trailingComma: string;
5
+ tabWidth: number;
6
+ semi: boolean;
7
+ singleQuote: boolean;
8
+ quoteProps: string;
9
+ insertPragma: boolean;
10
+ bracketSameLine: boolean;
11
+ printWidth: number;
12
+ bracketSpacing: boolean;
13
+ arrowParens: string;
14
+ endOfLine: string;
15
+ overrides: ({
16
+ files: string;
17
+ options: {
18
+ parser: string;
19
+ singleQuote: boolean;
20
+ trailingComma: string;
21
+ jsdocDescriptionWithDot: boolean;
22
+ jsdocDescriptionTag: boolean;
23
+ jsdocCommentLineStrategy: string;
24
+ jsdocCapitalizeDescription: boolean;
25
+ jsdocSeparateTagGroups: boolean;
26
+ jsdocPreferCodeFences: boolean;
27
+ tsdoc: boolean;
28
+ semi?: undefined;
29
+ alignEntries?: undefined;
30
+ alignComments?: undefined;
31
+ arrayAutoExpand?: undefined;
32
+ arrayAutoCollapse?: undefined;
33
+ compactArrays?: undefined;
34
+ compactInlineTables?: undefined;
35
+ compactEntries?: undefined;
36
+ indentTables?: undefined;
37
+ indentEntries?: undefined;
38
+ reorderKeys?: undefined;
39
+ allowedBlankLines?: undefined;
40
+ objectWrap?: undefined;
41
+ };
42
+ } | {
43
+ files: string;
44
+ options: {
45
+ semi: boolean;
46
+ trailingComma: string;
47
+ parser: string;
48
+ singleQuote?: undefined;
49
+ jsdocDescriptionWithDot?: undefined;
50
+ jsdocDescriptionTag?: undefined;
51
+ jsdocCommentLineStrategy?: undefined;
52
+ jsdocCapitalizeDescription?: undefined;
53
+ jsdocSeparateTagGroups?: undefined;
54
+ jsdocPreferCodeFences?: undefined;
55
+ tsdoc?: undefined;
56
+ alignEntries?: undefined;
57
+ alignComments?: undefined;
58
+ arrayAutoExpand?: undefined;
59
+ arrayAutoCollapse?: undefined;
60
+ compactArrays?: undefined;
61
+ compactInlineTables?: undefined;
62
+ compactEntries?: undefined;
63
+ indentTables?: undefined;
64
+ indentEntries?: undefined;
65
+ reorderKeys?: undefined;
66
+ allowedBlankLines?: undefined;
67
+ objectWrap?: undefined;
68
+ };
69
+ } | {
70
+ files: string;
71
+ options: {
72
+ parser: string;
73
+ alignEntries: boolean;
74
+ alignComments: boolean;
75
+ arrayAutoExpand: boolean;
76
+ arrayAutoCollapse: boolean;
77
+ compactArrays: boolean;
78
+ compactInlineTables: boolean;
79
+ compactEntries: boolean;
80
+ indentTables: boolean;
81
+ indentEntries: boolean;
82
+ reorderKeys: boolean;
83
+ allowedBlankLines: number;
84
+ singleQuote?: undefined;
85
+ trailingComma?: undefined;
86
+ jsdocDescriptionWithDot?: undefined;
87
+ jsdocDescriptionTag?: undefined;
88
+ jsdocCommentLineStrategy?: undefined;
89
+ jsdocCapitalizeDescription?: undefined;
90
+ jsdocSeparateTagGroups?: undefined;
91
+ jsdocPreferCodeFences?: undefined;
92
+ tsdoc?: undefined;
93
+ semi?: undefined;
94
+ objectWrap?: undefined;
95
+ };
96
+ } | {
97
+ files: string;
98
+ options: {
99
+ parser: string;
100
+ singleQuote?: undefined;
101
+ trailingComma?: undefined;
102
+ jsdocDescriptionWithDot?: undefined;
103
+ jsdocDescriptionTag?: undefined;
104
+ jsdocCommentLineStrategy?: undefined;
105
+ jsdocCapitalizeDescription?: undefined;
106
+ jsdocSeparateTagGroups?: undefined;
107
+ jsdocPreferCodeFences?: undefined;
108
+ tsdoc?: undefined;
109
+ semi?: undefined;
110
+ alignEntries?: undefined;
111
+ alignComments?: undefined;
112
+ arrayAutoExpand?: undefined;
113
+ arrayAutoCollapse?: undefined;
114
+ compactArrays?: undefined;
115
+ compactInlineTables?: undefined;
116
+ compactEntries?: undefined;
117
+ indentTables?: undefined;
118
+ indentEntries?: undefined;
119
+ reorderKeys?: undefined;
120
+ allowedBlankLines?: undefined;
121
+ objectWrap?: undefined;
122
+ };
123
+ } | {
124
+ files: string;
125
+ options: {
126
+ parser: string;
127
+ trailingComma: string;
128
+ objectWrap: string;
129
+ singleQuote?: undefined;
130
+ jsdocDescriptionWithDot?: undefined;
131
+ jsdocDescriptionTag?: undefined;
132
+ jsdocCommentLineStrategy?: undefined;
133
+ jsdocCapitalizeDescription?: undefined;
134
+ jsdocSeparateTagGroups?: undefined;
135
+ jsdocPreferCodeFences?: undefined;
136
+ tsdoc?: undefined;
137
+ semi?: undefined;
138
+ alignEntries?: undefined;
139
+ alignComments?: undefined;
140
+ arrayAutoExpand?: undefined;
141
+ arrayAutoCollapse?: undefined;
142
+ compactArrays?: undefined;
143
+ compactInlineTables?: undefined;
144
+ compactEntries?: undefined;
145
+ indentTables?: undefined;
146
+ indentEntries?: undefined;
147
+ reorderKeys?: undefined;
148
+ allowedBlankLines?: undefined;
149
+ };
150
+ })[];
151
+ plugins: string[];
152
+ organizeImportsSkipDestructiveCodeActions: boolean;
153
+ }, "plugins"> & {
154
+ plugins: string[];
155
+ };
156
+ //#endregion
157
+ export { _default as default };
@@ -0,0 +1,108 @@
1
+ import { t as createConfig } from "./create-config-Db8IeV_K.mjs";
2
+ //#endregion
3
+ //#region src/exclude-packagejson.ts
4
+ var exclude_packagejson_default = createConfig({
5
+ proseWrap: "preserve",
6
+ trailingComma: "none",
7
+ tabWidth: 2,
8
+ semi: true,
9
+ singleQuote: false,
10
+ quoteProps: "as-needed",
11
+ insertPragma: false,
12
+ bracketSameLine: true,
13
+ printWidth: 80,
14
+ bracketSpacing: true,
15
+ arrowParens: "avoid",
16
+ endOfLine: "lf",
17
+ overrides: [
18
+ {
19
+ "files": "**/{*.ts,*.tsx,*.mts,*.cts}",
20
+ "options": {
21
+ "parser": "typescript",
22
+ "singleQuote": false,
23
+ "trailingComma": "none",
24
+ "jsdocDescriptionWithDot": false,
25
+ "jsdocDescriptionTag": true,
26
+ "jsdocCommentLineStrategy": "multiline",
27
+ "jsdocCapitalizeDescription": true,
28
+ "jsdocSeparateTagGroups": true,
29
+ "jsdocPreferCodeFences": true,
30
+ "tsdoc": true
31
+ }
32
+ },
33
+ {
34
+ "files": "**/*.mdx",
35
+ "options": {
36
+ "semi": false,
37
+ "trailingComma": "none",
38
+ "parser": "mdx"
39
+ }
40
+ },
41
+ {
42
+ "files": "**/*.md",
43
+ "options": {
44
+ "semi": false,
45
+ "trailingComma": "none",
46
+ "parser": "markdown"
47
+ }
48
+ },
49
+ {
50
+ "files": "**/*.toml",
51
+ "options": {
52
+ "parser": "toml",
53
+ "alignEntries": true,
54
+ "alignComments": true,
55
+ "arrayAutoExpand": true,
56
+ "arrayAutoCollapse": true,
57
+ "compactArrays": true,
58
+ "compactInlineTables": false,
59
+ "compactEntries": false,
60
+ "indentTables": false,
61
+ "indentEntries": false,
62
+ "reorderKeys": false,
63
+ "allowedBlankLines": 1
64
+ }
65
+ },
66
+ {
67
+ "files": "**/*.svg",
68
+ "options": { "parser": "html" }
69
+ },
70
+ {
71
+ "files": "**/*.json",
72
+ "options": {
73
+ "parser": "json",
74
+ "trailingComma": "none",
75
+ "objectWrap": "preserve"
76
+ }
77
+ },
78
+ {
79
+ "files": "**/*.jsonc",
80
+ "options": {
81
+ "parser": "jsonc",
82
+ "trailingComma": "none",
83
+ "objectWrap": "preserve"
84
+ }
85
+ },
86
+ {
87
+ "files": "**/*.json5",
88
+ "options": {
89
+ "parser": "json5",
90
+ "trailingComma": "none",
91
+ "objectWrap": "preserve"
92
+ }
93
+ },
94
+ {
95
+ "files": "**/*.hbs",
96
+ "options": { "parser": "html" }
97
+ }
98
+ ],
99
+ plugins: [
100
+ "prettier-plugin-sh",
101
+ "prettier-plugin-toml",
102
+ "prettier-plugin-jsdoc",
103
+ "prettier-plugin-organize-imports"
104
+ ],
105
+ organizeImportsSkipDestructiveCodeActions: false
106
+ });
107
+ //#endregion
108
+ export { exclude_packagejson_default as default };
package/index.cjs CHANGED
@@ -1,109 +1,2 @@
1
- //#endregion
2
- //#region src/index.ts
3
- var src_default = {
4
- $schema: "https://www.schemastore.org/prettierrc.json",
5
- proseWrap: "preserve",
6
- trailingComma: "none",
7
- tabWidth: 2,
8
- semi: true,
9
- singleQuote: false,
10
- quoteProps: "as-needed",
11
- insertPragma: false,
12
- bracketSameLine: true,
13
- printWidth: 80,
14
- bracketSpacing: true,
15
- arrowParens: "avoid",
16
- endOfLine: "lf",
17
- overrides: [
18
- {
19
- "files": "**/{*.ts,*.tsx,*.mts,*.cts}",
20
- "options": {
21
- "parser": "typescript",
22
- "singleQuote": false,
23
- "trailingComma": "none",
24
- "jsdocDescriptionWithDot": false,
25
- "jsdocDescriptionTag": true,
26
- "jsdocCommentLineStrategy": "multiline",
27
- "jsdocCapitalizeDescription": true,
28
- "jsdocSeparateTagGroups": true,
29
- "jsdocPreferCodeFences": true,
30
- "tsdoc": true
31
- }
32
- },
33
- {
34
- "files": "**/*.mdx",
35
- "options": {
36
- "semi": false,
37
- "trailingComma": "none",
38
- "parser": "mdx"
39
- }
40
- },
41
- {
42
- "files": "**/*.md",
43
- "options": {
44
- "semi": false,
45
- "trailingComma": "none",
46
- "parser": "markdown"
47
- }
48
- },
49
- {
50
- "files": "**/*.toml",
51
- "options": {
52
- "parser": "toml",
53
- "alignEntries": true,
54
- "alignComments": true,
55
- "arrayAutoExpand": true,
56
- "arrayAutoCollapse": true,
57
- "compactArrays": true,
58
- "compactInlineTables": false,
59
- "compactEntries": false,
60
- "indentTables": false,
61
- "indentEntries": false,
62
- "reorderKeys": false,
63
- "allowedBlankLines": 1
64
- }
65
- },
66
- {
67
- "files": "**/*.svg",
68
- "options": { "parser": "html" }
69
- },
70
- {
71
- "files": "**/*.json",
72
- "options": {
73
- "parser": "json",
74
- "trailingComma": "none",
75
- "objectWrap": "preserve"
76
- }
77
- },
78
- {
79
- "files": "**/*.jsonc",
80
- "options": {
81
- "parser": "jsonc",
82
- "trailingComma": "none",
83
- "objectWrap": "preserve"
84
- }
85
- },
86
- {
87
- "files": "**/*.json5",
88
- "options": {
89
- "parser": "json5",
90
- "trailingComma": "none",
91
- "objectWrap": "preserve"
92
- }
93
- },
94
- {
95
- "files": "**/*.hbs",
96
- "options": { "parser": "html" }
97
- }
98
- ],
99
- plugins: [
100
- "prettier-plugin-sh",
101
- "prettier-plugin-packagejson",
102
- "prettier-plugin-toml",
103
- "prettier-plugin-jsdoc",
104
- "prettier-plugin-organize-imports"
105
- ],
106
- organizeImportsSkipDestructiveCodeActions: false
107
- };
108
- //#endregion
109
- module.exports = src_default;
1
+ const require_recommended = require("./recommended-D3dlN0-e.cjs");
2
+ module.exports = require_recommended.recommended_default;