eslint-plugin-oxfmt 0.5.0 → 0.5.1
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 +9 -9
- package/dist/index.mjs +3 -7
- package/dts/rule-options.d.ts +2 -2
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -183,14 +183,14 @@ For detailed behavior, see:
|
|
|
183
183
|
|
|
184
184
|
### Basic Options
|
|
185
185
|
|
|
186
|
-
| Option | Type | Default | Description
|
|
187
|
-
| ---------------- | ---------- | ------- |
|
|
188
|
-
| `semi` | `boolean` | `true` | Add semicolons at the end of statements
|
|
189
|
-
| `singleQuote` | `boolean` | `false` | Use single quotes instead of double quotes
|
|
190
|
-
| `tabWidth` | `number` | `2` | Number of spaces per indentation level
|
|
191
|
-
| `useTabs` | `boolean` | `false` | Use tabs for indentation
|
|
192
|
-
| `printWidth` | `number` | `100` | Maximum line length for wrapping
|
|
193
|
-
| `ignorePatterns` | `string[]` | `[]` | Glob patterns
|
|
186
|
+
| Option | Type | Default | Description |
|
|
187
|
+
| ---------------- | ---------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
188
|
+
| `semi` | `boolean` | `true` | Add semicolons at the end of statements |
|
|
189
|
+
| `singleQuote` | `boolean` | `false` | Use single quotes instead of double quotes |
|
|
190
|
+
| `tabWidth` | `number` | `2` | Number of spaces per indentation level |
|
|
191
|
+
| `useTabs` | `boolean` | `false` | Use tabs for indentation |
|
|
192
|
+
| `printWidth` | `number` | `100` | Maximum line length for wrapping |
|
|
193
|
+
| `ignorePatterns` | `string[]` | `[]` | Glob patterns to skip formatting. Rule option patterns are resolved from ESLint cwd; config file patterns are resolved from the config file directory. |
|
|
194
194
|
|
|
195
195
|
### Trailing Commas
|
|
196
196
|
|
|
@@ -224,7 +224,7 @@ For detailed behavior, see:
|
|
|
224
224
|
| ---------------- | ------------------------------------------- | ------------- | ------------------------------------------------ |
|
|
225
225
|
| `bracketSpacing` | `boolean` | `true` | Print spaces between brackets in object literals |
|
|
226
226
|
| `quoteProps` | `'as-needed' \| 'consistent' \| 'preserve'` | `'as-needed'` | When to quote object property names |
|
|
227
|
-
| `objectWrap` | `'preserve' \| 'collapse'
|
|
227
|
+
| `objectWrap` | `'preserve' \| 'collapse'` | `'preserve'` | How to wrap object literals |
|
|
228
228
|
|
|
229
229
|
### Line Endings
|
|
230
230
|
|
package/dist/index.mjs
CHANGED
|
@@ -68,7 +68,7 @@ const configs = {
|
|
|
68
68
|
//#region src/meta.ts
|
|
69
69
|
const meta = {
|
|
70
70
|
name: "eslint-plugin-oxfmt",
|
|
71
|
-
version: "0.5.
|
|
71
|
+
version: "0.5.1"
|
|
72
72
|
};
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region src/dir.ts
|
|
@@ -256,12 +256,8 @@ const oxfmtOptionsSchema = {
|
|
|
256
256
|
type: "boolean"
|
|
257
257
|
},
|
|
258
258
|
objectWrap: {
|
|
259
|
-
description: `How to wrap object literals when they could fit on one line or span multiple lines. (Default: "preserve")
|
|
260
|
-
enum: [
|
|
261
|
-
"preserve",
|
|
262
|
-
"collapse",
|
|
263
|
-
"always"
|
|
264
|
-
],
|
|
259
|
+
description: `How to wrap object literals when they could fit on one line or span multiple lines. (Default: "preserve")`,
|
|
260
|
+
enum: ["preserve", "collapse"],
|
|
265
261
|
type: "string"
|
|
266
262
|
},
|
|
267
263
|
printWidth: {
|
package/dts/rule-options.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export type OxfmtOxfmt = []|[{
|
|
|
57
57
|
|
|
58
58
|
jsxSingleQuote?: boolean
|
|
59
59
|
|
|
60
|
-
objectWrap?: ("preserve" | "collapse"
|
|
60
|
+
objectWrap?: ("preserve" | "collapse")
|
|
61
61
|
|
|
62
62
|
printWidth?: number
|
|
63
63
|
|
|
@@ -187,7 +187,7 @@ export type OxfmtOxfmt = []|[{
|
|
|
187
187
|
|
|
188
188
|
jsxSingleQuote?: boolean
|
|
189
189
|
|
|
190
|
-
objectWrap?: ("preserve" | "collapse"
|
|
190
|
+
objectWrap?: ("preserve" | "collapse")
|
|
191
191
|
|
|
192
192
|
printWidth?: number
|
|
193
193
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-oxfmt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.1",
|
|
5
5
|
"description": "An ESLint plugin for formatting code with oxfmt.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"eslint",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"synckit": "^0.11.12"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@ntnyq/eslint-config": "^6.1.
|
|
56
|
+
"@ntnyq/eslint-config": "^6.1.1",
|
|
57
57
|
"@types/json-schema": "^7.0.15",
|
|
58
58
|
"@types/node": "^25.6.0",
|
|
59
59
|
"@typescript/native-preview": "^7.0.0-dev.20260429.1",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"tsx": "^4.21.0",
|
|
74
74
|
"typescript": "^6.0.3",
|
|
75
75
|
"vitest": "^4.1.5",
|
|
76
|
-
"eslint-plugin-oxfmt": "0.5.
|
|
76
|
+
"eslint-plugin-oxfmt": "0.5.1"
|
|
77
77
|
},
|
|
78
78
|
"engines": {
|
|
79
79
|
"node": "^20.19.0 || >=22.12.0"
|
|
@@ -84,12 +84,13 @@
|
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|
|
86
86
|
"build": "pnpm run update:rule-options && tsdown",
|
|
87
|
+
"check:schema": "tsx scripts/checkSchemaParity.ts",
|
|
87
88
|
"dev": "tsdown --watch",
|
|
88
89
|
"format": "oxfmt",
|
|
89
90
|
"format:check": "oxfmt --check",
|
|
90
91
|
"lint": "eslint",
|
|
91
92
|
"release": "run-s release:check release:version",
|
|
92
|
-
"release:check": "run-s format:check lint typecheck test build",
|
|
93
|
+
"release:check": "run-s check:schema format:check lint typecheck test build",
|
|
93
94
|
"release:version": "bumpp",
|
|
94
95
|
"test": "vitest",
|
|
95
96
|
"typecheck": "tsgo --noEmit",
|