eslint-plugin-oxfmt 0.22.0 → 0.24.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.
Files changed (3) hide show
  1. package/README.md +15 -10
  2. package/dist/index.mjs +3 -3
  3. package/package.json +12 -35
package/README.md CHANGED
@@ -7,6 +7,8 @@
7
7
 
8
8
  > An ESLint plugin for formatting code with [oxfmt](https://github.com/oxc-project/oxc) - A blazing fast formatter powered by Rust.
9
9
 
10
+ Maintained in the [eslint-plugin-oxfmt monorepo](https://github.com/ntnyq/eslint-plugin-oxfmt). See the root README for development and release instructions.
11
+
10
12
  ## Features
11
13
 
12
14
  - ⚡️ **Blazing Fast** - Powered by [oxfmt](https://github.com/oxc-project/oxc), written in Rust
@@ -20,16 +22,19 @@
20
22
 
21
23
  ## Requirements
22
24
 
23
- - **ESLint**: `>= 9.0.0` (Only supports ESLint flat config)
24
- - **Node.js**: `^20.19.0 || >=22.12.0`
25
- - **oxfmt**: `>= 0.67.0`
25
+ - **ESLint**: `^9.5.0 || ^10.0.0` (Only supports ESLint flat config)
26
+ - **Node.js**: `^22.13.0 || >=24`
27
+ - **oxfmt**: `>= 0.68.0`
28
+
29
+ Oxfmt 0.68.0 fixes suppression comments (including trailing enum-member
30
+ comments), JSDoc cast and parameter layouts, JSX comment wrapping, and
31
+ TSX text wrapping inside Vue files. CSS/SCSS/Less formatting and YAML parsing
32
+ also receive fixes. YAML now treats `tabWidth: 0` as `1` to preserve nesting.
33
+ Existing files may receive formatting fixes after upgrading. No formatting
34
+ options were renamed or removed, and config merge precedence is unchanged.
35
+ See the [upstream release notes](https://github.com/oxc-project/oxc/releases/tag/oxfmt_v0.68.0).
26
36
 
27
- Oxfmt 0.67.0 preserves JSDoc cast parentheses containing comments, fixes
28
- CSS/SCSS/Less comment and list formatting, and moves GraphQL comments after
29
- an opening brace onto their own line. Existing files may receive formatting
30
- fixes after upgrading. No formatting options were renamed or removed, and
31
- config merge precedence is unchanged. See the
32
- [upstream release notes](https://github.com/oxc-project/oxc/releases/tag/oxfmt_v0.67.0).
37
+ The monorepo migration aligns the Node.js requirement with `load-oxfmt-config`; Node.js 20 is no longer supported.
33
38
 
34
39
  ## Installation
35
40
 
@@ -491,4 +496,4 @@ Add this to your `.vscode/settings.json`:
491
496
 
492
497
  ## License
493
498
 
494
- [MIT](./LICENSE) License © 2025-PRESENT [ntnyq](https://github.com/ntnyq)
499
+ [MIT](https://github.com/ntnyq/eslint-plugin-oxfmt/blob/main/LICENSE) License © 2025-PRESENT [ntnyq](https://github.com/ntnyq)
package/dist/index.mjs CHANGED
@@ -15,7 +15,7 @@ var __exportAll = (all, no_symbols) => {
15
15
  return target;
16
16
  };
17
17
  //#endregion
18
- //#region node_modules/.pnpm/eslint-parser-plain@0.1.1/node_modules/eslint-parser-plain/dist/index.mjs
18
+ //#region ../../node_modules/.pnpm/eslint-parser-plain@0.1.1/node_modules/eslint-parser-plain/dist/index.mjs
19
19
  var dist_exports = /* @__PURE__ */ __exportAll({
20
20
  meta: () => meta$1,
21
21
  parseForESLint: () => parseForESLint
@@ -80,13 +80,13 @@ const configs = {
80
80
  //#region src/meta.ts
81
81
  const meta = {
82
82
  name: "eslint-plugin-oxfmt",
83
- version: "0.22.0"
83
+ version: "0.24.0"
84
84
  };
85
85
  //#endregion
86
86
  //#region src/dir.ts
87
87
  const dirWorkers = fileURLToPath(new URL("../workers", import.meta.url));
88
88
  //#endregion
89
- //#region node_modules/.pnpm/show-invisibles@0.0.2/node_modules/show-invisibles/dist/index.js
89
+ //#region ../../node_modules/.pnpm/show-invisibles@0.0.2/node_modules/show-invisibles/dist/index.js
90
90
  const DEFAULT_MAPPINGS = /* @__PURE__ */ new Map([
91
91
  [" ", "·"],
92
92
  ["\n", "⏎"],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eslint-plugin-oxfmt",
3
3
  "type": "module",
4
- "version": "0.22.0",
4
+ "version": "0.24.0",
5
5
  "description": "An ESLint plugin for formatting code with oxfmt.",
6
6
  "keywords": [
7
7
  "eslint",
@@ -16,10 +16,11 @@
16
16
  "name": "ntnyq",
17
17
  "email": "ntnyq13@gmail.com"
18
18
  },
19
- "homepage": "https://github.com/ntnyq/eslint-plugin-oxfmt#readme",
19
+ "homepage": "https://github.com/ntnyq/eslint-plugin-oxfmt/tree/main/packages/eslint-plugin-oxfmt#readme",
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "git+https://github.com/ntnyq/eslint-plugin-oxfmt.git"
22
+ "url": "git+https://github.com/ntnyq/eslint-plugin-oxfmt.git",
23
+ "directory": "packages/eslint-plugin-oxfmt"
23
24
  },
24
25
  "bugs": {
25
26
  "url": "https://github.com/ntnyq/eslint-plugin-oxfmt/issues"
@@ -47,7 +48,7 @@
47
48
  "sideEffects": false,
48
49
  "peerDependencies": {
49
50
  "eslint": "^9.5.0 || ^10.0.0",
50
- "oxfmt": ">=0.67.0",
51
+ "oxfmt": ">=0.68.0",
51
52
  "svelte": "*"
52
53
  },
53
54
  "peerDependenciesMeta": {
@@ -57,54 +58,30 @@
57
58
  },
58
59
  "dependencies": {
59
60
  "generate-differences": "^0.1.1",
60
- "ignore": "^7.0.8",
61
- "load-oxfmt-config": "^0.23.0",
61
+ "ignore": "^7.0.9",
62
+ "load-oxfmt-config": "^0.24.0",
62
63
  "picomatch": "^4.0.7",
63
64
  "synckit": "^0.11.13"
64
65
  },
65
66
  "devDependencies": {
66
- "@ntnyq/eslint-config": "^7.0.0-beta.19",
67
67
  "@types/json-schema": "^7.0.15",
68
- "@types/node": "^26.5.0",
69
- "@typescript/native-preview": "^7.0.0-dev.20260707.2",
70
- "bumpp": "^12.3.0",
71
- "eslint": "^10.10.0",
72
68
  "eslint-parser-plain": "^0.1.1",
73
- "eslint-plugin-oxfmt": "0.22.0",
69
+ "eslint-plugin-oxfmt": "0.24.0",
74
70
  "eslint-typegen": "^2.3.1",
75
- "eslint-vitest-rule-tester": "^3.1.0",
76
- "husky": "^9.1.7",
71
+ "eslint-vitest-rule-tester": "^3.2.0",
77
72
  "jsonc-eslint-parser": "^3.3.0",
78
- "nano-staged": "^1.0.2",
79
- "npm-run-all2": "^9.0.3",
80
- "oxfmt": "^0.67.0",
81
73
  "show-invisibles": "^0.0.2",
82
74
  "svelte": "^5.57.0",
83
- "tinyglobby": "^0.2.17",
84
- "tsdown": "^0.23.0",
85
- "tsx": "^4.23.13",
86
- "typescript": "^6.0.3",
87
- "vitest": "^5.0.0"
75
+ "tinyglobby": "^0.2.17"
88
76
  },
89
77
  "engines": {
90
- "node": "^20.19.0 || >=22.12.0"
91
- },
92
- "nano-staged": {
93
- "*.{js,ts,mjs,tsx,md,vue,yml,yaml,toml,json}": "eslint --fix",
94
- "*": "oxfmt --no-error-on-unmatched-pattern"
78
+ "node": "^22.13.0 || >=24"
95
79
  },
96
80
  "scripts": {
97
81
  "build": "pnpm run update:rule-options && tsdown",
98
82
  "check:schema": "tsx scripts/checkSchemaParity.ts",
99
83
  "dev": "tsdown --watch",
100
- "format": "oxfmt",
101
- "format:check": "oxfmt --check",
102
- "lint": "eslint",
103
- "release": "run-s release:check release:version",
104
- "release:check": "run-s check:schema format:check lint typecheck test build",
105
- "release:version": "bumpp",
106
- "test": "vitest",
107
- "typecheck": "tsgo --noEmit",
84
+ "test": "vitest run --root . --config ../../vitest.config.ts",
108
85
  "update:rule-options": "tsx scripts/updateRuleOptions.ts"
109
86
  }
110
87
  }