worsier 3.3.0 → 3.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.
@@ -25,9 +25,11 @@
25
25
  "rules": {
26
26
  "$ref": "#/$defs/RulesConfig",
27
27
  "default": {
28
+ "commentSpacing": true,
28
29
  "importLayout": true,
29
30
  "interfaceLayout": 0,
30
31
  "objectPropertySpacing": true,
32
+ "quoteStyle": "single",
31
33
  "semicolons": {
32
34
  "classMembers": "asNeeded",
33
35
  "statements": "asNeeded",
@@ -77,9 +79,21 @@
77
79
  }
78
80
  ]
79
81
  },
82
+ "QuoteStyle": {
83
+ "type": "string",
84
+ "enum": [
85
+ "single",
86
+ "double",
87
+ "off"
88
+ ]
89
+ },
80
90
  "RulesConfig": {
81
91
  "type": "object",
82
92
  "properties": {
93
+ "commentSpacing": {
94
+ "type": "boolean",
95
+ "default": true
96
+ },
83
97
  "importLayout": {
84
98
  "type": "boolean",
85
99
  "default": true
@@ -92,6 +106,10 @@
92
106
  "type": "boolean",
93
107
  "default": true
94
108
  },
109
+ "quoteStyle": {
110
+ "$ref": "#/$defs/QuoteStyle",
111
+ "default": "single"
112
+ },
95
113
  "semicolons": {
96
114
  "$ref": "#/$defs/SemicolonConfig",
97
115
  "default": {
package/dist/types.d.ts CHANGED
@@ -9,9 +9,11 @@ export interface FormatConfig {
9
9
  verifyAst?: boolean;
10
10
  }
11
11
  export interface RulesConfig {
12
+ commentSpacing?: boolean;
12
13
  importLayout?: boolean;
13
14
  interfaceLayout?: number | InterfaceLayoutMode;
14
15
  objectPropertySpacing?: boolean;
16
+ quoteStyle?: 'single' | 'double' | 'off';
15
17
  semicolons?: SemicolonConfig;
16
18
  statementSpacing?: StatementSpacingConfig;
17
19
  trailingCommas?: 'always' | 'never' | 'off';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "worsier",
3
- "version": "3.3.0",
3
+ "version": "3.5.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.3.0",
53
- "worsier-win32-arm64-msvc": "3.3.0",
54
- "worsier-linux-arm64-gnu": "3.3.0",
55
- "worsier-linux-arm64-musl": "3.3.0",
56
- "worsier-darwin-x64": "3.3.0",
57
- "worsier-win32-x64-msvc": "3.3.0",
58
- "worsier-linux-x64-gnu": "3.3.0",
59
- "worsier-linux-x64-musl": "3.3.0"
52
+ "worsier-darwin-arm64": "3.5.0",
53
+ "worsier-win32-arm64-msvc": "3.5.0",
54
+ "worsier-linux-arm64-gnu": "3.5.0",
55
+ "worsier-linux-arm64-musl": "3.5.0",
56
+ "worsier-darwin-x64": "3.5.0",
57
+ "worsier-win32-x64-msvc": "3.5.0",
58
+ "worsier-linux-x64-gnu": "3.5.0",
59
+ "worsier-linux-x64-musl": "3.5.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/node": "26.4.0",