worsier 3.7.0 → 3.9.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,7 +29,9 @@
29
29
  "curly": "always",
30
30
  "square": "never"
31
31
  },
32
+ "classMemberSpacing": "smart",
32
33
  "commentSpacing": true,
34
+ "exportLayout": true,
33
35
  "importLayout": true,
34
36
  "interfaceLayout": 0,
35
37
  "objectPropertySpacing": true,
@@ -87,6 +89,15 @@
87
89
  "off"
88
90
  ]
89
91
  },
92
+ "ClassMemberSpacingMode": {
93
+ "type": "string",
94
+ "enum": [
95
+ "smart",
96
+ "separate",
97
+ "compact",
98
+ "off"
99
+ ]
100
+ },
90
101
  "InterfaceLayoutMode": {
91
102
  "type": "string",
92
103
  "enum": [
@@ -124,10 +135,18 @@
124
135
  "square": "never"
125
136
  }
126
137
  },
138
+ "classMemberSpacing": {
139
+ "$ref": "#/$defs/ClassMemberSpacingMode",
140
+ "default": "smart"
141
+ },
127
142
  "commentSpacing": {
128
143
  "type": "boolean",
129
144
  "default": true
130
145
  },
146
+ "exportLayout": {
147
+ "type": "boolean",
148
+ "default": true
149
+ },
131
150
  "importLayout": {
132
151
  "type": "boolean",
133
152
  "default": true
package/dist/types.d.ts CHANGED
@@ -11,7 +11,9 @@ export interface FormatConfig {
11
11
  }
12
12
  export interface RulesConfig {
13
13
  bracketSpacing?: BracketSpacingConfig;
14
+ classMemberSpacing?: 'smart' | 'separate' | 'compact' | 'off';
14
15
  commentSpacing?: boolean;
16
+ exportLayout?: boolean;
15
17
  importLayout?: boolean;
16
18
  interfaceLayout?: number | InterfaceLayoutMode;
17
19
  objectPropertySpacing?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "worsier",
3
- "version": "3.7.0",
3
+ "version": "3.9.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.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"
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"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/node": "26.6.3",