worsier 3.9.0 → 3.10.1

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.
@@ -57,7 +57,8 @@
57
57
  "variableDeclarations": "separate"
58
58
  },
59
59
  "trailingCommas": "never",
60
- "typeLiteralLayout": 0
60
+ "typeLiteralLayout": 0,
61
+ "unionLayout": "auto"
61
62
  }
62
63
  },
63
64
  "verifyAst": {
@@ -196,6 +197,10 @@
196
197
  "typeLiteralLayout": {
197
198
  "$ref": "#/$defs/TypeLiteralLayoutRule",
198
199
  "default": 0
200
+ },
201
+ "unionLayout": {
202
+ "$ref": "#/$defs/UnionLayoutMode",
203
+ "default": "auto"
199
204
  }
200
205
  },
201
206
  "additionalProperties": false
@@ -348,6 +353,14 @@
348
353
  "$ref": "#/$defs/TypeMemberSemicolonConfig"
349
354
  }
350
355
  ]
356
+ },
357
+ "UnionLayoutMode": {
358
+ "type": "string",
359
+ "enum": [
360
+ "auto",
361
+ "always",
362
+ "off"
363
+ ]
351
364
  }
352
365
  }
353
366
  }
package/dist/types.d.ts CHANGED
@@ -22,6 +22,7 @@ export interface RulesConfig {
22
22
  statementSpacing?: StatementSpacingConfig;
23
23
  trailingCommas?: 'always' | 'never' | 'off';
24
24
  typeLiteralLayout?: number | TypeLiteralLayoutMode;
25
+ unionLayout?: 'auto' | 'always' | 'off';
25
26
  }
26
27
  export interface BracketSpacingConfig {
27
28
  curly?: 'always' | 'never' | 'off';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "worsier",
3
- "version": "3.9.0",
3
+ "version": "3.10.1",
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.9.0",
53
- "worsier-win32-arm64-msvc": "3.9.0",
54
- "worsier-linux-arm64-gnu": "3.9.0",
55
- "worsier-linux-arm64-musl": "3.9.0",
56
- "worsier-darwin-x64": "3.9.0",
57
- "worsier-win32-x64-msvc": "3.9.0",
58
- "worsier-linux-x64-gnu": "3.9.0",
59
- "worsier-linux-x64-musl": "3.9.0"
52
+ "worsier-darwin-arm64": "3.10.1",
53
+ "worsier-win32-arm64-msvc": "3.10.1",
54
+ "worsier-linux-arm64-gnu": "3.10.1",
55
+ "worsier-linux-arm64-musl": "3.10.1",
56
+ "worsier-darwin-x64": "3.10.1",
57
+ "worsier-win32-x64-msvc": "3.10.1",
58
+ "worsier-linux-x64-gnu": "3.10.1",
59
+ "worsier-linux-x64-musl": "3.10.1"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/node": "26.6.3",