eslint-plugin-oxfmt 0.17.0 → 0.19.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/dist/index.mjs +6 -1
- package/dts/rule-options.d.ts +4 -0
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
- **ESLint**: `>= 9.0.0` (Only supports ESLint flat config)
|
|
24
24
|
- **Node.js**: `^20.19.0 || >=22.12.0`
|
|
25
|
-
- **oxfmt**: `>= 0.
|
|
25
|
+
- **oxfmt**: `>= 0.64.0`
|
|
26
26
|
|
|
27
27
|
## Installation
|
|
28
28
|
|
|
@@ -150,6 +150,7 @@ export default [
|
|
|
150
150
|
vueIndentScriptAndStyle: false,
|
|
151
151
|
|
|
152
152
|
// Advanced
|
|
153
|
+
experimentalOperatorPosition: 'end',
|
|
153
154
|
sortImports: {
|
|
154
155
|
order: 'asc',
|
|
155
156
|
newlinesBetween: true,
|
package/dist/index.mjs
CHANGED
|
@@ -79,7 +79,7 @@ const configs = {
|
|
|
79
79
|
//#region src/meta.ts
|
|
80
80
|
const meta = {
|
|
81
81
|
name: "eslint-plugin-oxfmt",
|
|
82
|
-
version: "0.
|
|
82
|
+
version: "0.19.0"
|
|
83
83
|
};
|
|
84
84
|
//#endregion
|
|
85
85
|
//#region src/dir.ts
|
|
@@ -185,6 +185,11 @@ const oxfmtOptionsSchema = {
|
|
|
185
185
|
],
|
|
186
186
|
type: "string"
|
|
187
187
|
},
|
|
188
|
+
experimentalOperatorPosition: {
|
|
189
|
+
description: `When expressions wrap lines, print operators at the start of new lines ("start") or at the end of previous lines ("end").\n\n- Languages: JS, JSX, TS, TSX\n- (Default: "end")`,
|
|
190
|
+
enum: ["start", "end"],
|
|
191
|
+
type: "string"
|
|
192
|
+
},
|
|
188
193
|
htmlWhitespaceSensitivity: {
|
|
189
194
|
description: `Specify the global whitespace sensitivity for HTML, Vue, Angular, and Handlebars.\n\n- (Default: "css")`,
|
|
190
195
|
enum: [
|
package/dts/rule-options.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export type OxfmtOxfmt = []|[{
|
|
|
24
24
|
|
|
25
25
|
endOfLine?: ("lf" | "crlf" | "cr")
|
|
26
26
|
|
|
27
|
+
experimentalOperatorPosition?: ("start" | "end")
|
|
28
|
+
|
|
27
29
|
htmlWhitespaceSensitivity?: ("css" | "ignore" | "strict")
|
|
28
30
|
|
|
29
31
|
ignorePatterns?: string[]
|
|
@@ -178,6 +180,8 @@ export type OxfmtOxfmt = []|[{
|
|
|
178
180
|
|
|
179
181
|
endOfLine?: ("lf" | "crlf" | "cr")
|
|
180
182
|
|
|
183
|
+
experimentalOperatorPosition?: ("start" | "end")
|
|
184
|
+
|
|
181
185
|
htmlWhitespaceSensitivity?: ("css" | "ignore" | "strict")
|
|
182
186
|
|
|
183
187
|
insertFinalNewline?: boolean
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-oxfmt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.19.0",
|
|
5
5
|
"description": "An ESLint plugin for formatting code with oxfmt.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"eslint",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"sideEffects": false,
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"eslint": "^9.5.0 || ^10.0.0",
|
|
50
|
-
"oxfmt": ">=0.
|
|
50
|
+
"oxfmt": ">=0.64.0",
|
|
51
51
|
"svelte": "*"
|
|
52
52
|
},
|
|
53
53
|
"peerDependenciesMeta": {
|
|
@@ -58,33 +58,33 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"generate-differences": "^0.1.1",
|
|
60
60
|
"ignore": "^7.0.6",
|
|
61
|
-
"load-oxfmt-config": "^0.
|
|
61
|
+
"load-oxfmt-config": "^0.20.0",
|
|
62
62
|
"picomatch": "^4.0.5",
|
|
63
63
|
"synckit": "^0.11.13"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@ntnyq/eslint-config": "^7.0.0-beta.
|
|
66
|
+
"@ntnyq/eslint-config": "^7.0.0-beta.16",
|
|
67
67
|
"@types/json-schema": "^7.0.15",
|
|
68
|
-
"@types/node": "^26.
|
|
68
|
+
"@types/node": "^26.2.0",
|
|
69
69
|
"@typescript/native-preview": "^7.0.0-dev.20260707.2",
|
|
70
|
-
"bumpp": "^12.
|
|
71
|
-
"eslint": "^10.8.
|
|
70
|
+
"bumpp": "^12.2.1",
|
|
71
|
+
"eslint": "^10.8.1",
|
|
72
72
|
"eslint-parser-plain": "^0.1.1",
|
|
73
73
|
"eslint-typegen": "^2.3.1",
|
|
74
74
|
"eslint-vitest-rule-tester": "^3.1.0",
|
|
75
75
|
"husky": "^9.1.7",
|
|
76
|
-
"jsonc-eslint-parser": "^3.
|
|
76
|
+
"jsonc-eslint-parser": "^3.3.0",
|
|
77
77
|
"nano-staged": "^1.0.2",
|
|
78
78
|
"npm-run-all2": "^9.0.3",
|
|
79
|
-
"oxfmt": "^0.
|
|
79
|
+
"oxfmt": "^0.64.0",
|
|
80
80
|
"show-invisibles": "^0.0.2",
|
|
81
|
-
"svelte": "^5.56.
|
|
81
|
+
"svelte": "^5.56.9",
|
|
82
82
|
"tinyglobby": "^0.2.17",
|
|
83
83
|
"tsdown": "^0.22.14",
|
|
84
|
-
"tsx": "^4.23.
|
|
84
|
+
"tsx": "^4.23.12",
|
|
85
85
|
"typescript": "^6.0.3",
|
|
86
|
-
"vitest": "^4.1.
|
|
87
|
-
"eslint-plugin-oxfmt": "0.
|
|
86
|
+
"vitest": "^4.1.11",
|
|
87
|
+
"eslint-plugin-oxfmt": "0.19.0"
|
|
88
88
|
},
|
|
89
89
|
"engines": {
|
|
90
90
|
"node": "^20.19.0 || >=22.12.0"
|