worsier 2.9.0 → 2.11.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 +11 -0
- package/dist/types.d.ts +2 -0
- package/package.json +9 -9
|
@@ -27,12 +27,14 @@
|
|
|
27
27
|
"default": {
|
|
28
28
|
"importLayout": true,
|
|
29
29
|
"interfaceLayout": 0,
|
|
30
|
+
"objectPropertySpacing": true,
|
|
30
31
|
"semicolons": {
|
|
31
32
|
"classMembers": "asNeeded",
|
|
32
33
|
"statements": "asNeeded",
|
|
33
34
|
"typeMembers": "asNeeded"
|
|
34
35
|
},
|
|
35
36
|
"statementSpacing": {
|
|
37
|
+
"controlFlowStatements": "separate",
|
|
36
38
|
"imports": "separate",
|
|
37
39
|
"returnStatements": "separate",
|
|
38
40
|
"typeAliases": "separate",
|
|
@@ -78,6 +80,10 @@
|
|
|
78
80
|
"$ref": "#/$defs/InterfaceLayoutRule",
|
|
79
81
|
"default": 0
|
|
80
82
|
},
|
|
83
|
+
"objectPropertySpacing": {
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"default": true
|
|
86
|
+
},
|
|
81
87
|
"semicolons": {
|
|
82
88
|
"$ref": "#/$defs/SemicolonConfig",
|
|
83
89
|
"default": {
|
|
@@ -89,6 +95,7 @@
|
|
|
89
95
|
"statementSpacing": {
|
|
90
96
|
"$ref": "#/$defs/StatementSpacingConfig",
|
|
91
97
|
"default": {
|
|
98
|
+
"controlFlowStatements": "separate",
|
|
92
99
|
"imports": "separate",
|
|
93
100
|
"returnStatements": "separate",
|
|
94
101
|
"typeAliases": "separate",
|
|
@@ -131,6 +138,10 @@
|
|
|
131
138
|
"StatementSpacingConfig": {
|
|
132
139
|
"type": "object",
|
|
133
140
|
"properties": {
|
|
141
|
+
"controlFlowStatements": {
|
|
142
|
+
"$ref": "#/$defs/StatementSpacingMode",
|
|
143
|
+
"default": "separate"
|
|
144
|
+
},
|
|
134
145
|
"imports": {
|
|
135
146
|
"$ref": "#/$defs/StatementSpacingMode",
|
|
136
147
|
"default": "separate"
|
package/dist/types.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface FormatConfig {
|
|
|
9
9
|
export interface RulesConfig {
|
|
10
10
|
importLayout?: boolean;
|
|
11
11
|
interfaceLayout?: number | InterfaceLayoutMode;
|
|
12
|
+
objectPropertySpacing?: boolean;
|
|
12
13
|
semicolons?: SemicolonConfig;
|
|
13
14
|
statementSpacing?: StatementSpacingConfig;
|
|
14
15
|
trailingCommas?: 'always' | 'never' | 'off';
|
|
@@ -19,6 +20,7 @@ export interface SemicolonConfig {
|
|
|
19
20
|
typeMembers?: 'always' | 'asNeeded' | 'off';
|
|
20
21
|
}
|
|
21
22
|
export interface StatementSpacingConfig {
|
|
23
|
+
controlFlowStatements?: 'separate' | 'compact' | 'off';
|
|
22
24
|
imports?: 'separate' | 'compact' | 'off';
|
|
23
25
|
returnStatements?: 'separate' | 'compact' | 'off';
|
|
24
26
|
typeAliases?: 'separate' | 'compact' | 'off';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "worsier",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.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.11.0",
|
|
53
|
+
"worsier-win32-arm64-msvc": "2.11.0",
|
|
54
|
+
"worsier-linux-arm64-gnu": "2.11.0",
|
|
55
|
+
"worsier-linux-arm64-musl": "2.11.0",
|
|
56
|
+
"worsier-darwin-x64": "2.11.0",
|
|
57
|
+
"worsier-win32-x64-msvc": "2.11.0",
|
|
58
|
+
"worsier-linux-x64-gnu": "2.11.0",
|
|
59
|
+
"worsier-linux-x64-musl": "2.11.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/node": "26.2.0",
|