worsier 2.8.1 → 2.10.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/configuration_schema.json +12 -0
- package/dist/types.d.ts +2 -0
- package/package.json +9 -9
|
@@ -33,7 +33,9 @@
|
|
|
33
33
|
"typeMembers": "asNeeded"
|
|
34
34
|
},
|
|
35
35
|
"statementSpacing": {
|
|
36
|
+
"controlFlowStatements": "separate",
|
|
36
37
|
"imports": "separate",
|
|
38
|
+
"returnStatements": "separate",
|
|
37
39
|
"typeAliases": "separate",
|
|
38
40
|
"variableDeclarations": "separate"
|
|
39
41
|
},
|
|
@@ -88,7 +90,9 @@
|
|
|
88
90
|
"statementSpacing": {
|
|
89
91
|
"$ref": "#/$defs/StatementSpacingConfig",
|
|
90
92
|
"default": {
|
|
93
|
+
"controlFlowStatements": "separate",
|
|
91
94
|
"imports": "separate",
|
|
95
|
+
"returnStatements": "separate",
|
|
92
96
|
"typeAliases": "separate",
|
|
93
97
|
"variableDeclarations": "separate"
|
|
94
98
|
}
|
|
@@ -129,10 +133,18 @@
|
|
|
129
133
|
"StatementSpacingConfig": {
|
|
130
134
|
"type": "object",
|
|
131
135
|
"properties": {
|
|
136
|
+
"controlFlowStatements": {
|
|
137
|
+
"$ref": "#/$defs/StatementSpacingMode",
|
|
138
|
+
"default": "separate"
|
|
139
|
+
},
|
|
132
140
|
"imports": {
|
|
133
141
|
"$ref": "#/$defs/StatementSpacingMode",
|
|
134
142
|
"default": "separate"
|
|
135
143
|
},
|
|
144
|
+
"returnStatements": {
|
|
145
|
+
"$ref": "#/$defs/StatementSpacingMode",
|
|
146
|
+
"default": "separate"
|
|
147
|
+
},
|
|
136
148
|
"typeAliases": {
|
|
137
149
|
"$ref": "#/$defs/StatementSpacingMode",
|
|
138
150
|
"default": "separate"
|
package/dist/types.d.ts
CHANGED
|
@@ -19,7 +19,9 @@ export interface SemicolonConfig {
|
|
|
19
19
|
typeMembers?: 'always' | 'asNeeded' | 'off';
|
|
20
20
|
}
|
|
21
21
|
export interface StatementSpacingConfig {
|
|
22
|
+
controlFlowStatements?: 'separate' | 'compact' | 'off';
|
|
22
23
|
imports?: 'separate' | 'compact' | 'off';
|
|
24
|
+
returnStatements?: 'separate' | 'compact' | 'off';
|
|
23
25
|
typeAliases?: 'separate' | 'compact' | 'off';
|
|
24
26
|
variableDeclarations?: 'separate' | 'compact' | 'off';
|
|
25
27
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "worsier",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "A focused JavaScript, TypeScript, and Vue SFC script formatter powered by Rust",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
51
|
"optionalDependencies": {
|
|
52
|
-
"worsier-darwin-arm64": "2.
|
|
53
|
-
"worsier-win32-arm64-msvc": "2.
|
|
54
|
-
"worsier-linux-arm64-gnu": "2.
|
|
55
|
-
"worsier-linux-arm64-musl": "2.
|
|
56
|
-
"worsier-darwin-x64": "2.
|
|
57
|
-
"worsier-win32-x64-msvc": "2.
|
|
58
|
-
"worsier-linux-x64-gnu": "2.
|
|
59
|
-
"worsier-linux-x64-musl": "2.
|
|
52
|
+
"worsier-darwin-arm64": "2.10.0",
|
|
53
|
+
"worsier-win32-arm64-msvc": "2.10.0",
|
|
54
|
+
"worsier-linux-arm64-gnu": "2.10.0",
|
|
55
|
+
"worsier-linux-arm64-musl": "2.10.0",
|
|
56
|
+
"worsier-darwin-x64": "2.10.0",
|
|
57
|
+
"worsier-win32-x64-msvc": "2.10.0",
|
|
58
|
+
"worsier-linux-x64-gnu": "2.10.0",
|
|
59
|
+
"worsier-linux-x64-musl": "2.10.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/node": "26.2.0",
|