oxlint-harness 1.0.11 → 1.0.12

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 (2) hide show
  1. package/dist/command.js +8 -8
  2. package/package.json +1 -1
package/dist/command.js CHANGED
@@ -92,14 +92,14 @@ The suppression file format uses counts per rule per file:
92
92
  this.log(" -t, --tighten Tighten suppressions when violations are fixed");
93
93
  this.log(" --no-tighten Don't tighten suppressions");
94
94
  this.log(" --no-type-aware Don't pass --type-aware to oxlint (default: passes it)");
95
- this.log(" --no-type-check Don't pass --type-check to oxlint (default: passes it)");
95
+ this.log(" --type-check Pass --type-check to oxlint (default: off)");
96
96
  this.log(" -h, --help Show this help message");
97
97
  this.log("");
98
98
  this.log("ENVIRONMENT VARIABLES");
99
99
  this.log(" OXLINT_HARNESS_RESULTS_PATH Override the results file path");
100
100
  this.log(" OXLINT_HARNESS_NO_FAIL_ON_EXCESS Set to 'true' to exit 0 on new errors");
101
101
  this.log(" OXLINT_HARNESS_NO_TYPE_AWARE Set to 'true' to skip --type-aware");
102
- this.log(" OXLINT_HARNESS_NO_TYPE_CHECK Set to 'true' to skip --type-check");
102
+ this.log(" OXLINT_HARNESS_TYPE_CHECK Set to 'true' to enable --type-check");
103
103
  this.log("");
104
104
  this.log("ARGS");
105
105
  this.log(" <paths> Files or directories to lint (passed to oxlint)");
@@ -129,7 +129,7 @@ The suppression file format uses counts per rule per file:
129
129
  "-t",
130
130
  "--no-tighten",
131
131
  "--no-type-aware",
132
- "--no-type-check",
132
+ "--type-check",
133
133
  ]);
134
134
  const collectOxlintArgs = (args) => {
135
135
  const passthrough = [];
@@ -159,7 +159,7 @@ The suppression file format uses counts per rule per file:
159
159
  if (arg === "--tighten" || arg === "-t" || arg === "--no-tighten") {
160
160
  continue;
161
161
  }
162
- if (arg === "--no-type-aware" || arg === "--no-type-check") {
162
+ if (arg === "--no-type-aware" || arg === "--type-check") {
163
163
  continue;
164
164
  }
165
165
  if (arg === "--help" || arg === "-h") {
@@ -239,15 +239,15 @@ The suppression file format uses counts per rule per file:
239
239
  throw error;
240
240
  }
241
241
  }
242
- // Default --type-aware and --type-check unless opted out
242
+ // Default --type-aware unless opted out; --type-check is opt-in
243
243
  const noTypeAware = rawArgs.includes("--no-type-aware") ||
244
244
  process.env.OXLINT_HARNESS_NO_TYPE_AWARE?.toLowerCase() === "true";
245
- const noTypeCheck = rawArgs.includes("--no-type-check") ||
246
- process.env.OXLINT_HARNESS_NO_TYPE_CHECK?.toLowerCase() === "true";
245
+ const typeCheck = rawArgs.includes("--type-check") ||
246
+ process.env.OXLINT_HARNESS_TYPE_CHECK?.toLowerCase() === "true";
247
247
  if (!noTypeAware && !oxlintArgs.includes("--type-aware")) {
248
248
  oxlintArgs.unshift("--type-aware");
249
249
  }
250
- if (!noTypeCheck && !oxlintArgs.includes("--type-check")) {
250
+ if (typeCheck && !oxlintArgs.includes("--type-check")) {
251
251
  oxlintArgs.unshift("--type-check");
252
252
  }
253
253
  // Check for OXLINT_HARNESS_UPDATE_BULK_SUPPRESSION environment variable
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxlint-harness",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "A harness for oxlint with bulk suppressions support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",