worsier 3.6.1 → 3.7.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.
@@ -54,7 +54,8 @@
54
54
  "typeAliases": "separate",
55
55
  "variableDeclarations": "separate"
56
56
  },
57
- "trailingCommas": "never"
57
+ "trailingCommas": "never",
58
+ "typeLiteralLayout": 0
58
59
  }
59
60
  },
60
61
  "verifyAst": {
@@ -172,6 +173,10 @@
172
173
  "trailingCommas": {
173
174
  "$ref": "#/$defs/TrailingCommaMode",
174
175
  "default": "never"
176
+ },
177
+ "typeLiteralLayout": {
178
+ "$ref": "#/$defs/TypeLiteralLayoutRule",
179
+ "default": 0
175
180
  }
176
181
  },
177
182
  "additionalProperties": false
@@ -282,6 +287,25 @@
282
287
  "off"
283
288
  ]
284
289
  },
290
+ "TypeLiteralLayoutMode": {
291
+ "type": "string",
292
+ "enum": [
293
+ "off"
294
+ ]
295
+ },
296
+ "TypeLiteralLayoutRule": {
297
+ "anyOf": [
298
+ {
299
+ "type": "integer",
300
+ "format": "uint32",
301
+ "maximum": 4294967295,
302
+ "minimum": 0
303
+ },
304
+ {
305
+ "$ref": "#/$defs/TypeLiteralLayoutMode"
306
+ }
307
+ ]
308
+ },
285
309
  "TypeMemberSemicolonConfig": {
286
310
  "type": "object",
287
311
  "properties": {
package/dist/types.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export type InterfaceLayoutMode = 'off';
2
2
  export type SemicolonMode = 'always' | 'asNeeded' | 'off';
3
3
  export type StatementSpacingMode = 'separate' | 'compact' | 'off';
4
+ export type TypeLiteralLayoutMode = 'off';
4
5
  export interface FormatConfig {
5
6
  $schema?: string | null;
6
7
  ignorePatterns?: string[];
@@ -18,6 +19,7 @@ export interface RulesConfig {
18
19
  semicolons?: SemicolonConfig;
19
20
  statementSpacing?: StatementSpacingConfig;
20
21
  trailingCommas?: 'always' | 'never' | 'off';
22
+ typeLiteralLayout?: number | TypeLiteralLayoutMode;
21
23
  }
22
24
  export interface BracketSpacingConfig {
23
25
  curly?: 'always' | 'never' | 'off';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "worsier",
3
- "version": "3.6.1",
3
+ "version": "3.7.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.6.1",
53
- "worsier-win32-arm64-msvc": "3.6.1",
54
- "worsier-linux-arm64-gnu": "3.6.1",
55
- "worsier-linux-arm64-musl": "3.6.1",
56
- "worsier-darwin-x64": "3.6.1",
57
- "worsier-win32-x64-msvc": "3.6.1",
58
- "worsier-linux-x64-gnu": "3.6.1",
59
- "worsier-linux-x64-musl": "3.6.1"
52
+ "worsier-darwin-arm64": "3.7.0",
53
+ "worsier-win32-arm64-msvc": "3.7.0",
54
+ "worsier-linux-arm64-gnu": "3.7.0",
55
+ "worsier-linux-arm64-musl": "3.7.0",
56
+ "worsier-darwin-x64": "3.7.0",
57
+ "worsier-win32-x64-msvc": "3.7.0",
58
+ "worsier-linux-x64-gnu": "3.7.0",
59
+ "worsier-linux-x64-musl": "3.7.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/node": "26.6.3",