worsier 2.4.1 → 2.5.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/README.md +2 -1
- package/configuration_schema.json +6 -0
- package/dist/types.d.ts +1 -0
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
A focused JavaScript, TypeScript, JSX, and TSX formatter powered by Rust. It formats static imports,
|
|
4
4
|
TypeScript interface layout, statement and member semicolons, trailing commas, and the boundaries
|
|
5
|
-
around runtime variable declarations while preserving source text
|
|
5
|
+
around TypeScript type aliases and runtime variable declarations while preserving source text
|
|
6
|
+
outside the enabled rules.
|
|
6
7
|
Node.js 24.0.0 or newer is required.
|
|
7
8
|
|
|
8
9
|
```sh
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"statementSpacing": {
|
|
36
36
|
"imports": "separate",
|
|
37
|
+
"typeAliases": "separate",
|
|
37
38
|
"variableDeclarations": "separate"
|
|
38
39
|
},
|
|
39
40
|
"trailingCommas": "never"
|
|
@@ -88,6 +89,7 @@
|
|
|
88
89
|
"$ref": "#/$defs/StatementSpacingConfig",
|
|
89
90
|
"default": {
|
|
90
91
|
"imports": "separate",
|
|
92
|
+
"typeAliases": "separate",
|
|
91
93
|
"variableDeclarations": "separate"
|
|
92
94
|
}
|
|
93
95
|
},
|
|
@@ -131,6 +133,10 @@
|
|
|
131
133
|
"$ref": "#/$defs/StatementSpacingMode",
|
|
132
134
|
"default": "separate"
|
|
133
135
|
},
|
|
136
|
+
"typeAliases": {
|
|
137
|
+
"$ref": "#/$defs/StatementSpacingMode",
|
|
138
|
+
"default": "separate"
|
|
139
|
+
},
|
|
134
140
|
"variableDeclarations": {
|
|
135
141
|
"$ref": "#/$defs/StatementSpacingMode",
|
|
136
142
|
"default": "separate"
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "worsier",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "A focused JavaScript and TypeScript import, interface-layout, semicolon, trailing-comma, and statement-boundary 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.5.0",
|
|
53
|
+
"worsier-win32-arm64-msvc": "2.5.0",
|
|
54
|
+
"worsier-linux-arm64-gnu": "2.5.0",
|
|
55
|
+
"worsier-linux-arm64-musl": "2.5.0",
|
|
56
|
+
"worsier-darwin-x64": "2.5.0",
|
|
57
|
+
"worsier-win32-x64-msvc": "2.5.0",
|
|
58
|
+
"worsier-linux-x64-gnu": "2.5.0",
|
|
59
|
+
"worsier-linux-x64-musl": "2.5.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/node": "26.2.0",
|