worsier 3.8.0 → 3.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.
@@ -29,6 +29,7 @@
29
29
  "curly": "always",
30
30
  "square": "never"
31
31
  },
32
+ "classMemberSpacing": "smart",
32
33
  "commentSpacing": true,
33
34
  "exportLayout": true,
34
35
  "importLayout": true,
@@ -56,7 +57,8 @@
56
57
  "variableDeclarations": "separate"
57
58
  },
58
59
  "trailingCommas": "never",
59
- "typeLiteralLayout": 0
60
+ "typeLiteralLayout": 0,
61
+ "unionLayout": "auto"
60
62
  }
61
63
  },
62
64
  "verifyAst": {
@@ -88,6 +90,15 @@
88
90
  "off"
89
91
  ]
90
92
  },
93
+ "ClassMemberSpacingMode": {
94
+ "type": "string",
95
+ "enum": [
96
+ "smart",
97
+ "separate",
98
+ "compact",
99
+ "off"
100
+ ]
101
+ },
91
102
  "InterfaceLayoutMode": {
92
103
  "type": "string",
93
104
  "enum": [
@@ -125,6 +136,10 @@
125
136
  "square": "never"
126
137
  }
127
138
  },
139
+ "classMemberSpacing": {
140
+ "$ref": "#/$defs/ClassMemberSpacingMode",
141
+ "default": "smart"
142
+ },
128
143
  "commentSpacing": {
129
144
  "type": "boolean",
130
145
  "default": true
@@ -182,6 +197,10 @@
182
197
  "typeLiteralLayout": {
183
198
  "$ref": "#/$defs/TypeLiteralLayoutRule",
184
199
  "default": 0
200
+ },
201
+ "unionLayout": {
202
+ "$ref": "#/$defs/UnionLayoutMode",
203
+ "default": "auto"
185
204
  }
186
205
  },
187
206
  "additionalProperties": false
@@ -334,6 +353,14 @@
334
353
  "$ref": "#/$defs/TypeMemberSemicolonConfig"
335
354
  }
336
355
  ]
356
+ },
357
+ "UnionLayoutMode": {
358
+ "type": "string",
359
+ "enum": [
360
+ "auto",
361
+ "always",
362
+ "off"
363
+ ]
337
364
  }
338
365
  }
339
366
  }
package/dist/types.d.ts CHANGED
@@ -11,6 +11,7 @@ export interface FormatConfig {
11
11
  }
12
12
  export interface RulesConfig {
13
13
  bracketSpacing?: BracketSpacingConfig;
14
+ classMemberSpacing?: 'smart' | 'separate' | 'compact' | 'off';
14
15
  commentSpacing?: boolean;
15
16
  exportLayout?: boolean;
16
17
  importLayout?: boolean;
@@ -21,6 +22,7 @@ export interface RulesConfig {
21
22
  statementSpacing?: StatementSpacingConfig;
22
23
  trailingCommas?: 'always' | 'never' | 'off';
23
24
  typeLiteralLayout?: number | TypeLiteralLayoutMode;
25
+ unionLayout?: 'auto' | 'always' | 'off';
24
26
  }
25
27
  export interface BracketSpacingConfig {
26
28
  curly?: 'always' | 'never' | 'off';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "worsier",
3
- "version": "3.8.0",
3
+ "version": "3.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": "3.8.0",
53
- "worsier-win32-arm64-msvc": "3.8.0",
54
- "worsier-linux-arm64-gnu": "3.8.0",
55
- "worsier-linux-arm64-musl": "3.8.0",
56
- "worsier-darwin-x64": "3.8.0",
57
- "worsier-win32-x64-msvc": "3.8.0",
58
- "worsier-linux-x64-gnu": "3.8.0",
59
- "worsier-linux-x64-musl": "3.8.0"
52
+ "worsier-darwin-arm64": "3.10.0",
53
+ "worsier-win32-arm64-msvc": "3.10.0",
54
+ "worsier-linux-arm64-gnu": "3.10.0",
55
+ "worsier-linux-arm64-musl": "3.10.0",
56
+ "worsier-darwin-x64": "3.10.0",
57
+ "worsier-win32-x64-msvc": "3.10.0",
58
+ "worsier-linux-x64-gnu": "3.10.0",
59
+ "worsier-linux-x64-musl": "3.10.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/node": "26.6.3",