worsier 3.6.1 → 3.8.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 +30 -1
- package/dist/types.d.ts +3 -0
- package/package.json +9 -9
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"square": "never"
|
|
31
31
|
},
|
|
32
32
|
"commentSpacing": true,
|
|
33
|
+
"exportLayout": true,
|
|
33
34
|
"importLayout": true,
|
|
34
35
|
"interfaceLayout": 0,
|
|
35
36
|
"objectPropertySpacing": true,
|
|
@@ -54,7 +55,8 @@
|
|
|
54
55
|
"typeAliases": "separate",
|
|
55
56
|
"variableDeclarations": "separate"
|
|
56
57
|
},
|
|
57
|
-
"trailingCommas": "never"
|
|
58
|
+
"trailingCommas": "never",
|
|
59
|
+
"typeLiteralLayout": 0
|
|
58
60
|
}
|
|
59
61
|
},
|
|
60
62
|
"verifyAst": {
|
|
@@ -127,6 +129,10 @@
|
|
|
127
129
|
"type": "boolean",
|
|
128
130
|
"default": true
|
|
129
131
|
},
|
|
132
|
+
"exportLayout": {
|
|
133
|
+
"type": "boolean",
|
|
134
|
+
"default": true
|
|
135
|
+
},
|
|
130
136
|
"importLayout": {
|
|
131
137
|
"type": "boolean",
|
|
132
138
|
"default": true
|
|
@@ -172,6 +178,10 @@
|
|
|
172
178
|
"trailingCommas": {
|
|
173
179
|
"$ref": "#/$defs/TrailingCommaMode",
|
|
174
180
|
"default": "never"
|
|
181
|
+
},
|
|
182
|
+
"typeLiteralLayout": {
|
|
183
|
+
"$ref": "#/$defs/TypeLiteralLayoutRule",
|
|
184
|
+
"default": 0
|
|
175
185
|
}
|
|
176
186
|
},
|
|
177
187
|
"additionalProperties": false
|
|
@@ -282,6 +292,25 @@
|
|
|
282
292
|
"off"
|
|
283
293
|
]
|
|
284
294
|
},
|
|
295
|
+
"TypeLiteralLayoutMode": {
|
|
296
|
+
"type": "string",
|
|
297
|
+
"enum": [
|
|
298
|
+
"off"
|
|
299
|
+
]
|
|
300
|
+
},
|
|
301
|
+
"TypeLiteralLayoutRule": {
|
|
302
|
+
"anyOf": [
|
|
303
|
+
{
|
|
304
|
+
"type": "integer",
|
|
305
|
+
"format": "uint32",
|
|
306
|
+
"maximum": 4294967295,
|
|
307
|
+
"minimum": 0
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"$ref": "#/$defs/TypeLiteralLayoutMode"
|
|
311
|
+
}
|
|
312
|
+
]
|
|
313
|
+
},
|
|
285
314
|
"TypeMemberSemicolonConfig": {
|
|
286
315
|
"type": "object",
|
|
287
316
|
"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[];
|
|
@@ -11,6 +12,7 @@ export interface FormatConfig {
|
|
|
11
12
|
export interface RulesConfig {
|
|
12
13
|
bracketSpacing?: BracketSpacingConfig;
|
|
13
14
|
commentSpacing?: boolean;
|
|
15
|
+
exportLayout?: boolean;
|
|
14
16
|
importLayout?: boolean;
|
|
15
17
|
interfaceLayout?: number | InterfaceLayoutMode;
|
|
16
18
|
objectPropertySpacing?: boolean;
|
|
@@ -18,6 +20,7 @@ export interface RulesConfig {
|
|
|
18
20
|
semicolons?: SemicolonConfig;
|
|
19
21
|
statementSpacing?: StatementSpacingConfig;
|
|
20
22
|
trailingCommas?: 'always' | 'never' | 'off';
|
|
23
|
+
typeLiteralLayout?: number | TypeLiteralLayoutMode;
|
|
21
24
|
}
|
|
22
25
|
export interface BracketSpacingConfig {
|
|
23
26
|
curly?: 'always' | 'never' | 'off';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "worsier",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.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.
|
|
53
|
-
"worsier-win32-arm64-msvc": "3.
|
|
54
|
-
"worsier-linux-arm64-gnu": "3.
|
|
55
|
-
"worsier-linux-arm64-musl": "3.
|
|
56
|
-
"worsier-darwin-x64": "3.
|
|
57
|
-
"worsier-win32-x64-msvc": "3.
|
|
58
|
-
"worsier-linux-x64-gnu": "3.
|
|
59
|
-
"worsier-linux-x64-musl": "3.
|
|
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"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/node": "26.6.3",
|