@rrlab/oxc-plugin 1.1.5-git-5b70d92.0 → 1.1.5-git-c9903ab.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/dist/index.mjs CHANGED
@@ -20,7 +20,7 @@ var OxlintService = class extends ToolService {
20
20
  });
21
21
  }
22
22
  async lint(options) {
23
- return this.runReport(["--report-unused-disable-directives", options.fix ? "--fix" : "--check"]);
23
+ return this.runReport(["--report-unused-disable-directives", ...options.fix ? ["--fix"] : []]);
24
24
  }
25
25
  };
26
26
  var OxfmtService = class extends ToolService {
@@ -33,7 +33,7 @@ var OxfmtService = class extends ToolService {
33
33
  });
34
34
  }
35
35
  async format(options) {
36
- return this.runReport(["--no-error-on-unmatched-pattern", options.fix ? "--fix" : "--check"]);
36
+ return this.runReport(["--no-error-on-unmatched-pattern", options.fix ? "--write" : "--check"]);
37
37
  }
38
38
  };
39
39
  var OxlintTypeCheckService = class extends ToolService {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rrlab/oxc-plugin",
3
- "version": "1.1.5-git-5b70d92.0",
3
+ "version": "1.1.5-git-c9903ab.0",
4
4
  "description": "oxc plugin for @rrlab/cli — provides lint (oxlint) and format (oxfmt) capabilities.",
5
5
  "homepage": "https://github.com/withvariablelab/dx/tree/main/run-run/oxc-plugin#readme",
6
6
  "bugs": {
@@ -30,7 +30,7 @@
30
30
  "access": "public"
31
31
  },
32
32
  "engines": {
33
- "node": ">=20.0.0"
33
+ "node": ">=22.18.0"
34
34
  },
35
35
  "dependencies": {
36
36
  "@variablelab/clibuddy": "0.7.4"
@@ -39,7 +39,7 @@
39
39
  "oxfmt": ">=0.30.0",
40
40
  "oxlint": ">=1.0.0",
41
41
  "oxlint-tsgolint": ">=0.15.0",
42
- "@rrlab/cli": "^1.3.5"
42
+ "@rrlab/cli": "^1.3.6-git-c9903ab.0"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "oxlint-tsgolint": {
@@ -52,8 +52,8 @@
52
52
  "oxlint": "1.66.0",
53
53
  "oxlint-tsgolint": "0.23.0",
54
54
  "semver": "^7.8.1",
55
- "@rrlab/cli": "1.3.5",
56
- "@rrlab/tsdown-config": "^0.1.2"
55
+ "@rrlab/tsdown-config": "^0.1.2",
56
+ "@rrlab/cli": "1.3.6-git-c9903ab.0"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "tsdown",
package/src/index.ts CHANGED
@@ -27,7 +27,8 @@ export class OxlintService extends ToolService implements Linter {
27
27
  }
28
28
 
29
29
  async lint(options: LintOptions): Promise<RunReport> {
30
- return this.runReport(["--report-unused-disable-directives", options.fix ? "--fix" : "--check"]);
30
+ // oxlint checks by default; it has no `--check` flag.
31
+ return this.runReport(["--report-unused-disable-directives", ...(options.fix ? ["--fix"] : [])]);
31
32
  }
32
33
  }
33
34
 
@@ -37,7 +38,7 @@ export class OxfmtService extends ToolService implements Formatter {
37
38
  }
38
39
 
39
40
  async format(options: FormatOptions): Promise<RunReport> {
40
- return this.runReport(["--no-error-on-unmatched-pattern", options.fix ? "--fix" : "--check"]);
41
+ return this.runReport(["--no-error-on-unmatched-pattern", options.fix ? "--write" : "--check"]);
41
42
  }
42
43
  }
43
44