oxlint 1.54.0 → 1.56.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.
@@ -6,10 +6,7 @@
6
6
  "properties": {
7
7
  "$schema": {
8
8
  "description": "Schema URI for editor tooling.",
9
- "type": [
10
- "string",
11
- "null"
12
- ],
9
+ "type": "string",
13
10
  "markdownDescription": "Schema URI for editor tooling."
14
11
  },
15
12
  "categories": {
@@ -60,7 +57,7 @@
60
57
  "markdownDescription": "Globs to ignore during linting. These are resolved from the configuration file path."
61
58
  },
62
59
  "jsPlugins": {
63
- "description": "JS plugins, allows usage of ESLint plugins with Oxlint.\n\nRead more about JS plugins in\n[the docs](https://oxc.rs/docs/guide/usage/linter/js-plugins.html).\n\nNote: JS plugins are experimental and not subject to semver.\n\nExamples:\n\nBasic usage with a local plugin path.\n\n```json\n{\n\"jsPlugins\": [\"./custom-plugin.js\"],\n\"rules\": {\n\"custom/rule-name\": \"warn\"\n}\n}\n```\n\nUsing a built-in Rust plugin alongside a JS plugin with the same name\nby giving the JS plugin an alias.\n\n```json\n{\n\"plugins\": [\"import\"],\n\"jsPlugins\": [\n{ \"name\": \"import-js\", \"specifier\": \"eslint-plugin-import\" }\n],\n\"rules\": {\n\"import/no-cycle\": \"error\",\n\"import-js/no-unresolved\": \"warn\"\n}\n}\n```",
60
+ "description": "JS plugins, allows usage of ESLint plugins with Oxlint.\n\nRead more about JS plugins in\n[the docs](https://oxc.rs/docs/guide/usage/linter/js-plugins.html).\n\nNote: JS plugins are in alpha and not subject to semver.\n\nExamples:\n\nBasic usage with a local plugin path.\n\n```json\n{\n\"jsPlugins\": [\"./custom-plugin.js\"],\n\"rules\": {\n\"custom/rule-name\": \"warn\"\n}\n}\n```\n\nUsing a built-in Rust plugin alongside a JS plugin with the same name\nby giving the JS plugin an alias.\n\n```json\n{\n\"plugins\": [\"import\"],\n\"jsPlugins\": [\n{ \"name\": \"import-js\", \"specifier\": \"eslint-plugin-import\" }\n],\n\"rules\": {\n\"import/no-cycle\": \"error\",\n\"import-js/no-unresolved\": \"warn\"\n}\n}\n```",
64
61
  "anyOf": [
65
62
  {
66
63
  "type": "null"
@@ -73,7 +70,7 @@
73
70
  "uniqueItems": true
74
71
  }
75
72
  ],
76
- "markdownDescription": "JS plugins, allows usage of ESLint plugins with Oxlint.\n\nRead more about JS plugins in\n[the docs](https://oxc.rs/docs/guide/usage/linter/js-plugins.html).\n\nNote: JS plugins are experimental and not subject to semver.\n\nExamples:\n\nBasic usage with a local plugin path.\n\n```json\n{\n\"jsPlugins\": [\"./custom-plugin.js\"],\n\"rules\": {\n\"custom/rule-name\": \"warn\"\n}\n}\n```\n\nUsing a built-in Rust plugin alongside a JS plugin with the same name\nby giving the JS plugin an alias.\n\n```json\n{\n\"plugins\": [\"import\"],\n\"jsPlugins\": [\n{ \"name\": \"import-js\", \"specifier\": \"eslint-plugin-import\" }\n],\n\"rules\": {\n\"import/no-cycle\": \"error\",\n\"import-js/no-unresolved\": \"warn\"\n}\n}\n```"
73
+ "markdownDescription": "JS plugins, allows usage of ESLint plugins with Oxlint.\n\nRead more about JS plugins in\n[the docs](https://oxc.rs/docs/guide/usage/linter/js-plugins.html).\n\nNote: JS plugins are in alpha and not subject to semver.\n\nExamples:\n\nBasic usage with a local plugin path.\n\n```json\n{\n\"jsPlugins\": [\"./custom-plugin.js\"],\n\"rules\": {\n\"custom/rule-name\": \"warn\"\n}\n}\n```\n\nUsing a built-in Rust plugin alongside a JS plugin with the same name\nby giving the JS plugin an alias.\n\n```json\n{\n\"plugins\": [\"import\"],\n\"jsPlugins\": [\n{ \"name\": \"import-js\", \"specifier\": \"eslint-plugin-import\" }\n],\n\"rules\": {\n\"import/no-cycle\": \"error\",\n\"import-js/no-unresolved\": \"warn\"\n}\n}\n```"
77
74
  },
78
75
  "options": {
79
76
  "description": "Oxlint config options.",
@@ -96,12 +93,9 @@
96
93
  "plugins": {
97
94
  "description": "Enabled built-in plugins for Oxlint.\nYou can view the list of available plugins on\n[the website](https://oxc.rs/docs/guide/usage/linter/plugins.html#supported-plugins).\n\nNOTE: Setting the `plugins` field will overwrite the base set of plugins.\nThe `plugins` array should reflect all of the plugins you want to use.",
98
95
  "default": null,
99
- "anyOf": [
96
+ "allOf": [
100
97
  {
101
98
  "$ref": "#/definitions/LintPlugins"
102
- },
103
- {
104
- "type": "null"
105
99
  }
106
100
  ],
107
101
  "markdownDescription": "Enabled built-in plugins for Oxlint.\nYou can view the list of available plugins on\n[the website](https://oxc.rs/docs/guide/usage/linter/plugins.html#supported-plugins).\n\nNOTE: Setting the `plugins` field will overwrite the base set of plugins.\nThe `plugins` array should reflect all of the plugins you want to use."
@@ -370,10 +364,7 @@
370
364
  },
371
365
  "polymorphicPropName": {
372
366
  "description": "An optional setting that define the prop your code uses to create polymorphic components.\nThis setting will be used to determine the element type in rules that\nrequire semantic context.\n\nFor example, if you set the `polymorphicPropName` to `as`, then this element:\n\n```jsx\n<Box as=\"h3\">Hello</Box>\n```\n\nWill be treated as an `h3`. If not set, this component will be treated\nas a `Box`.",
373
- "type": [
374
- "string",
375
- "null"
376
- ],
367
+ "type": "string",
377
368
  "markdownDescription": "An optional setting that define the prop your code uses to create polymorphic components.\nThis setting will be used to determine the element type in rules that\nrequire semantic context.\n\nFor example, if you set the `polymorphicPropName` to `as`, then this element:\n\n```jsx\n<Box as=\"h3\">Hello</Box>\n```\n\nWill be treated as an `h3`. If not set, this component will be treated\nas a `Box`."
378
369
  }
379
370
  },
@@ -496,48 +487,33 @@
496
487
  "properties": {
497
488
  "denyWarnings": {
498
489
  "description": "Ensure warnings produce a non-zero exit code.\n\nEquivalent to passing `--deny-warnings` on the CLI.",
499
- "type": [
500
- "boolean",
501
- "null"
502
- ],
490
+ "type": "boolean",
503
491
  "markdownDescription": "Ensure warnings produce a non-zero exit code.\n\nEquivalent to passing `--deny-warnings` on the CLI."
504
492
  },
505
493
  "maxWarnings": {
506
494
  "description": "Specify a warning threshold. Exits with an error status if warnings exceed this value.\n\nEquivalent to passing `--max-warnings` on the CLI.",
507
- "type": [
508
- "integer",
509
- "null"
510
- ],
495
+ "type": "integer",
511
496
  "format": "uint",
512
497
  "minimum": 0.0,
513
498
  "markdownDescription": "Specify a warning threshold. Exits with an error status if warnings exceed this value.\n\nEquivalent to passing `--max-warnings` on the CLI."
514
499
  },
515
500
  "reportUnusedDisableDirectives": {
516
501
  "description": "Report unused disable directives (e.g. `// oxlint-disable-line` or `// eslint-disable-line`).\n\nEquivalent to passing `--report-unused-disable-directives-severity` on the CLI.\nCLI flags take precedence over this value when both are set.\nOnly supported in the root configuration file.",
517
- "anyOf": [
502
+ "allOf": [
518
503
  {
519
504
  "$ref": "#/definitions/AllowWarnDeny"
520
- },
521
- {
522
- "type": "null"
523
505
  }
524
506
  ],
525
507
  "markdownDescription": "Report unused disable directives (e.g. `// oxlint-disable-line` or `// eslint-disable-line`).\n\nEquivalent to passing `--report-unused-disable-directives-severity` on the CLI.\nCLI flags take precedence over this value when both are set.\nOnly supported in the root configuration file."
526
508
  },
527
509
  "typeAware": {
528
510
  "description": "Enable rules that require type information.\n\nEquivalent to passing `--type-aware` on the CLI.\n\nNote that this requires the `oxlint-tsgolint` package to be installed.",
529
- "type": [
530
- "boolean",
531
- "null"
532
- ],
511
+ "type": "boolean",
533
512
  "markdownDescription": "Enable rules that require type information.\n\nEquivalent to passing `--type-aware` on the CLI.\n\nNote that this requires the `oxlint-tsgolint` package to be installed."
534
513
  },
535
514
  "typeCheck": {
536
515
  "description": "Enable experimental type checking (includes TypeScript compiler diagnostics).\n\nEquivalent to passing `--type-check` on the CLI.\n\nNote that this requires the `oxlint-tsgolint` package to be installed.",
537
- "type": [
538
- "boolean",
539
- "null"
540
- ],
516
+ "type": "boolean",
541
517
  "markdownDescription": "Enable experimental type checking (includes TypeScript compiler diagnostics).\n\nEquivalent to passing `--type-check` on the CLI.\n\nNote that this requires the `oxlint-tsgolint` package to be installed."
542
518
  }
543
519
  },
@@ -552,12 +528,9 @@
552
528
  "properties": {
553
529
  "env": {
554
530
  "description": "Environments enable and disable collections of global variables.",
555
- "anyOf": [
531
+ "allOf": [
556
532
  {
557
533
  "$ref": "#/definitions/OxlintEnv"
558
- },
559
- {
560
- "type": "null"
561
534
  }
562
535
  ],
563
536
  "markdownDescription": "Environments enable and disable collections of global variables."
@@ -573,18 +546,15 @@
573
546
  },
574
547
  "globals": {
575
548
  "description": "Enabled or disabled specific global variables.",
576
- "anyOf": [
549
+ "allOf": [
577
550
  {
578
551
  "$ref": "#/definitions/OxlintGlobals"
579
- },
580
- {
581
- "type": "null"
582
552
  }
583
553
  ],
584
554
  "markdownDescription": "Enabled or disabled specific global variables."
585
555
  },
586
556
  "jsPlugins": {
587
- "description": "JS plugins for this override, allows usage of ESLint plugins with Oxlint.\n\nRead more about JS plugins in\n[the docs](https://oxc.rs/docs/guide/usage/linter/js-plugins.html).\n\nNote: JS plugins are experimental and not subject to semver.",
557
+ "description": "JS plugins for this override, allows usage of ESLint plugins with Oxlint.\n\nRead more about JS plugins in\n[the docs](https://oxc.rs/docs/guide/usage/linter/js-plugins.html).\n\nNote: JS plugins are in alpha and not subject to semver.",
588
558
  "anyOf": [
589
559
  {
590
560
  "type": "null"
@@ -597,17 +567,14 @@
597
567
  "uniqueItems": true
598
568
  }
599
569
  ],
600
- "markdownDescription": "JS plugins for this override, allows usage of ESLint plugins with Oxlint.\n\nRead more about JS plugins in\n[the docs](https://oxc.rs/docs/guide/usage/linter/js-plugins.html).\n\nNote: JS plugins are experimental and not subject to semver."
570
+ "markdownDescription": "JS plugins for this override, allows usage of ESLint plugins with Oxlint.\n\nRead more about JS plugins in\n[the docs](https://oxc.rs/docs/guide/usage/linter/js-plugins.html).\n\nNote: JS plugins are in alpha and not subject to semver."
601
571
  },
602
572
  "plugins": {
603
573
  "description": "Optionally change what plugins are enabled for this override. When\nomitted, the base config's plugins are used.",
604
574
  "default": null,
605
- "anyOf": [
575
+ "allOf": [
606
576
  {
607
577
  "$ref": "#/definitions/LintPlugins"
608
- },
609
- {
610
- "type": "null"
611
578
  }
612
579
  ],
613
580
  "markdownDescription": "Optionally change what plugins are enabled for this override. When\nomitted, the base config's plugins are used."
@@ -736,10 +703,7 @@
736
703
  "version": {
737
704
  "description": "React version to use for version-specific rules.\n\nAccepts semver versions (e.g., \"18.2.0\", \"17.0\").\n\nExample:\n\n```jsonc\n{\n\"settings\": {\n\"react\": {\n\"version\": \"18.2.0\"\n}\n}\n}\n```",
738
705
  "default": null,
739
- "type": [
740
- "string",
741
- "null"
742
- ],
706
+ "type": "string",
743
707
  "pattern": "^[1-9]\\d*(\\.(0|[1-9]\\d*))?(\\.(0|[1-9]\\d*))?$",
744
708
  "markdownDescription": "React version to use for version-specific rules.\n\nAccepts semver versions (e.g., \"18.2.0\", \"17.0\").\n\nExample:\n\n```jsonc\n{\n\"settings\": {\n\"react\": {\n\"version\": \"18.2.0\"\n}\n}\n}\n```"
745
709
  }
@@ -797,4 +761,4 @@
797
761
  }
798
762
  },
799
763
  "markdownDescription": "Oxlint Configuration File\n\nThis configuration is aligned with ESLint v8's configuration schema (`eslintrc.json`).\n\nUsage: `oxlint -c oxlintrc.json`\n\nExample\n\n`.oxlintrc.json`\n\n```json\n{\n\"$schema\": \"./node_modules/oxlint/configuration_schema.json\",\n\"plugins\": [\"import\", \"typescript\", \"unicorn\"],\n\"env\": {\n\"browser\": true\n},\n\"globals\": {\n\"foo\": \"readonly\"\n},\n\"settings\": {\n\"react\": {\n\"version\": \"18.2.0\"\n},\n\"custom\": { \"option\": true }\n},\n\"rules\": {\n\"eqeqeq\": \"warn\",\n\"import/no-cycle\": \"error\",\n\"react/self-closing-comp\": [\"error\", { \"html\": false }]\n},\n\"overrides\": [\n{\n\"files\": [\"*.test.ts\", \"*.spec.ts\"],\n\"rules\": {\n\"@typescript-eslint/no-explicit-any\": \"off\"\n}\n}\n]\n}\n```\n\n`oxlint.config.ts`\n\n```ts\nimport { defineConfig } from \"oxlint\";\n\nexport default defineConfig({\nplugins: [\"import\", \"typescript\", \"unicorn\"],\nenv: {\n\"browser\": true\n},\nglobals: {\n\"foo\": \"readonly\"\n},\nsettings: {\nreact: {\nversion: \"18.2.0\"\n},\ncustom: { option: true }\n},\nrules: {\n\"eqeqeq\": \"warn\",\n\"import/no-cycle\": \"error\",\n\"react/self-closing-comp\": [\"error\", { \"html\": false }]\n},\noverrides: [\n{\nfiles: [\"*.test.ts\", \"*.spec.ts\"],\nrules: {\n\"@typescript-eslint/no-explicit-any\": \"off\"\n}\n}\n]\n});\n```"
800
- }
764
+ }
package/dist/bindings.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { n as ArrayIsArray } from "./globals.js";
1
2
  import { createRequire } from "node:module";
2
3
  //#region src-js/bindings.js
3
4
  const require = createRequire(import.meta.url);
@@ -15,7 +16,7 @@ const loadErrors = [], isMusl = () => {
15
16
  }
16
17
  }, isMuslFromReport = () => {
17
18
  let report = null;
18
- return typeof process.report?.getReport == "function" && (process.report.excludeNetwork = !0, report = process.report.getReport()), report ? report.header && report.header.glibcVersionRuntime ? !1 : !!(Array.isArray(report.sharedObjects) && report.sharedObjects.some(isFileMusl)) : null;
19
+ return typeof process.report?.getReport == "function" && (process.report.excludeNetwork = !0, report = process.report.getReport()), report ? report.header && report.header.glibcVersionRuntime ? !1 : !!(ArrayIsArray(report.sharedObjects) && report.sharedObjects.some(isFileMusl)) : null;
19
20
  }, isMuslFromChildProcess = () => {
20
21
  try {
21
22
  return require("child_process").execSync("ldd --version", { encoding: "utf8" }).includes("musl");
@@ -37,7 +38,7 @@ function requireNative() {
37
38
  }
38
39
  try {
39
40
  let binding = require("@oxlint/binding-android-arm64"), bindingPackageVersion = require("@oxlint/binding-android-arm64/package.json").version;
40
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
41
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
41
42
  return binding;
42
43
  } catch (e) {
43
44
  loadErrors.push(e);
@@ -50,7 +51,7 @@ function requireNative() {
50
51
  }
51
52
  try {
52
53
  let binding = require("@oxlint/binding-android-arm-eabi"), bindingPackageVersion = require("@oxlint/binding-android-arm-eabi/package.json").version;
53
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
54
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
54
55
  return binding;
55
56
  } catch (e) {
56
57
  loadErrors.push(e);
@@ -64,7 +65,7 @@ function requireNative() {
64
65
  }
65
66
  try {
66
67
  let binding = require("@oxlint/binding-win32-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-win32-x64-gnu/package.json").version;
67
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
68
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
68
69
  return binding;
69
70
  } catch (e) {
70
71
  loadErrors.push(e);
@@ -77,7 +78,7 @@ function requireNative() {
77
78
  }
78
79
  try {
79
80
  let binding = require("@oxlint/binding-win32-x64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-x64-msvc/package.json").version;
80
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
81
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
81
82
  return binding;
82
83
  } catch (e) {
83
84
  loadErrors.push(e);
@@ -91,7 +92,7 @@ function requireNative() {
91
92
  }
92
93
  try {
93
94
  let binding = require("@oxlint/binding-win32-ia32-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-ia32-msvc/package.json").version;
94
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
95
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
95
96
  return binding;
96
97
  } catch (e) {
97
98
  loadErrors.push(e);
@@ -104,7 +105,7 @@ function requireNative() {
104
105
  }
105
106
  try {
106
107
  let binding = require("@oxlint/binding-win32-arm64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-arm64-msvc/package.json").version;
107
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
108
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
108
109
  return binding;
109
110
  } catch (e) {
110
111
  loadErrors.push(e);
@@ -118,7 +119,7 @@ function requireNative() {
118
119
  }
119
120
  try {
120
121
  let binding = require("@oxlint/binding-darwin-universal"), bindingPackageVersion = require("@oxlint/binding-darwin-universal/package.json").version;
121
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
122
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
122
123
  return binding;
123
124
  } catch (e) {
124
125
  loadErrors.push(e);
@@ -131,7 +132,7 @@ function requireNative() {
131
132
  }
132
133
  try {
133
134
  let binding = require("@oxlint/binding-darwin-x64"), bindingPackageVersion = require("@oxlint/binding-darwin-x64/package.json").version;
134
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
135
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
135
136
  return binding;
136
137
  } catch (e) {
137
138
  loadErrors.push(e);
@@ -144,7 +145,7 @@ function requireNative() {
144
145
  }
145
146
  try {
146
147
  let binding = require("@oxlint/binding-darwin-arm64"), bindingPackageVersion = require("@oxlint/binding-darwin-arm64/package.json").version;
147
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
148
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
148
149
  return binding;
149
150
  } catch (e) {
150
151
  loadErrors.push(e);
@@ -158,7 +159,7 @@ function requireNative() {
158
159
  }
159
160
  try {
160
161
  let binding = require("@oxlint/binding-freebsd-x64"), bindingPackageVersion = require("@oxlint/binding-freebsd-x64/package.json").version;
161
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
162
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
162
163
  return binding;
163
164
  } catch (e) {
164
165
  loadErrors.push(e);
@@ -171,7 +172,7 @@ function requireNative() {
171
172
  }
172
173
  try {
173
174
  let binding = require("@oxlint/binding-freebsd-arm64"), bindingPackageVersion = require("@oxlint/binding-freebsd-arm64/package.json").version;
174
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
175
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
175
176
  return binding;
176
177
  } catch (e) {
177
178
  loadErrors.push(e);
@@ -185,7 +186,7 @@ function requireNative() {
185
186
  }
186
187
  try {
187
188
  let binding = require("@oxlint/binding-linux-x64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-x64-musl/package.json").version;
188
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
189
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
189
190
  return binding;
190
191
  } catch (e) {
191
192
  loadErrors.push(e);
@@ -198,7 +199,7 @@ function requireNative() {
198
199
  }
199
200
  try {
200
201
  let binding = require("@oxlint/binding-linux-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-x64-gnu/package.json").version;
201
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
202
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
202
203
  return binding;
203
204
  } catch (e) {
204
205
  loadErrors.push(e);
@@ -212,7 +213,7 @@ function requireNative() {
212
213
  }
213
214
  try {
214
215
  let binding = require("@oxlint/binding-linux-arm64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-musl/package.json").version;
215
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
216
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
216
217
  return binding;
217
218
  } catch (e) {
218
219
  loadErrors.push(e);
@@ -225,7 +226,7 @@ function requireNative() {
225
226
  }
226
227
  try {
227
228
  let binding = require("@oxlint/binding-linux-arm64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-gnu/package.json").version;
228
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
229
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
229
230
  return binding;
230
231
  } catch (e) {
231
232
  loadErrors.push(e);
@@ -239,7 +240,7 @@ function requireNative() {
239
240
  }
240
241
  try {
241
242
  let binding = require("@oxlint/binding-linux-arm-musleabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-musleabihf/package.json").version;
242
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
243
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
243
244
  return binding;
244
245
  } catch (e) {
245
246
  loadErrors.push(e);
@@ -252,7 +253,7 @@ function requireNative() {
252
253
  }
253
254
  try {
254
255
  let binding = require("@oxlint/binding-linux-arm-gnueabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-gnueabihf/package.json").version;
255
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
256
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
256
257
  return binding;
257
258
  } catch (e) {
258
259
  loadErrors.push(e);
@@ -266,7 +267,7 @@ function requireNative() {
266
267
  }
267
268
  try {
268
269
  let binding = require("@oxlint/binding-linux-loong64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-musl/package.json").version;
269
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
270
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
270
271
  return binding;
271
272
  } catch (e) {
272
273
  loadErrors.push(e);
@@ -279,7 +280,7 @@ function requireNative() {
279
280
  }
280
281
  try {
281
282
  let binding = require("@oxlint/binding-linux-loong64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-gnu/package.json").version;
282
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
283
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
283
284
  return binding;
284
285
  } catch (e) {
285
286
  loadErrors.push(e);
@@ -293,7 +294,7 @@ function requireNative() {
293
294
  }
294
295
  try {
295
296
  let binding = require("@oxlint/binding-linux-riscv64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-musl/package.json").version;
296
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
297
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
297
298
  return binding;
298
299
  } catch (e) {
299
300
  loadErrors.push(e);
@@ -306,7 +307,7 @@ function requireNative() {
306
307
  }
307
308
  try {
308
309
  let binding = require("@oxlint/binding-linux-riscv64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-gnu/package.json").version;
309
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
310
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
310
311
  return binding;
311
312
  } catch (e) {
312
313
  loadErrors.push(e);
@@ -320,7 +321,7 @@ function requireNative() {
320
321
  }
321
322
  try {
322
323
  let binding = require("@oxlint/binding-linux-ppc64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-ppc64-gnu/package.json").version;
323
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
324
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
324
325
  return binding;
325
326
  } catch (e) {
326
327
  loadErrors.push(e);
@@ -333,7 +334,7 @@ function requireNative() {
333
334
  }
334
335
  try {
335
336
  let binding = require("@oxlint/binding-linux-s390x-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-s390x-gnu/package.json").version;
336
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
337
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
337
338
  return binding;
338
339
  } catch (e) {
339
340
  loadErrors.push(e);
@@ -347,7 +348,7 @@ function requireNative() {
347
348
  }
348
349
  try {
349
350
  let binding = require("@oxlint/binding-openharmony-arm64"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm64/package.json").version;
350
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
351
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
351
352
  return binding;
352
353
  } catch (e) {
353
354
  loadErrors.push(e);
@@ -360,7 +361,7 @@ function requireNative() {
360
361
  }
361
362
  try {
362
363
  let binding = require("@oxlint/binding-openharmony-x64"), bindingPackageVersion = require("@oxlint/binding-openharmony-x64/package.json").version;
363
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
364
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
364
365
  return binding;
365
366
  } catch (e) {
366
367
  loadErrors.push(e);
@@ -373,7 +374,7 @@ function requireNative() {
373
374
  }
374
375
  try {
375
376
  let binding = require("@oxlint/binding-openharmony-arm"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm/package.json").version;
376
- if (bindingPackageVersion !== "1.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
377
+ if (bindingPackageVersion !== "1.56.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.56.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
377
378
  return binding;
378
379
  } catch (e) {
379
380
  loadErrors.push(e);
package/dist/cli.js CHANGED
@@ -1,3 +1,4 @@
1
+ import "./globals.js";
1
2
  import { r as lint } from "./bindings.js";
2
3
  //#region src-js/cli.ts
3
4
  let loadPlugin = null, setupRuleConfigs = null, lintFile = null, createWorkspace = null, destroyWorkspace = null, loadJsConfigs = null;
@@ -79,6 +80,6 @@ function loadJsConfigsWrapper(paths) {
79
80
  return loadJsConfigs === null ? import("./js_config.js").then((mod) => (loadJsConfigs = mod.loadJsConfigs, loadJsConfigs(paths))) : loadJsConfigs(paths);
80
81
  }
81
82
  const args = process.argv.slice(2);
82
- process.stdout.isTTY || (process.stdin._handle?.setBlocking?.(!0), process.stdout._handle?.setBlocking?.(!0)), await lint(args, loadPluginWrapper, setupRuleConfigsWrapper, lintFileWrapper, createWorkspaceWrapper, destroyWorkspaceWrapper, loadJsConfigsWrapper) || (process.exitCode = 1);
83
+ process.stdout.isTTY || (process.stdin._handle?.setBlocking?.(!0), process.stdout._handle?.setBlocking?.(!0)), args.includes("--lsp") && (process.stdout.write = process.stderr.write.bind(process.stderr)), await lint(args, loadPluginWrapper, setupRuleConfigsWrapper, lintFileWrapper, createWorkspaceWrapper, destroyWorkspaceWrapper, loadJsConfigsWrapper) || (process.exitCode = 1);
83
84
  //#endregion
84
85
  export {};
@@ -0,0 +1,13 @@
1
+ //#region src-js/utils/globals.ts
2
+ /**
3
+ * Properties of global objects exported as variables.
4
+ *
5
+ * TSDown will replace e.g. `Object.keys` with import of `ObjectKeys` from this file.
6
+ *
7
+ * If you use any globals in code in `src-js` directory, you should add them to this file.
8
+ *
9
+ * See TSDown config file for more details.
10
+ */
11
+ const { prototype: ObjectPrototype, hasOwn: ObjectHasOwn, keys: ObjectKeys, values: ObjectValues, freeze: ObjectFreeze, preventExtensions: ObjectPreventExtensions, defineProperty: ObjectDefineProperty, defineProperties: ObjectDefineProperties, create: ObjectCreate, assign: ObjectAssign, getPrototypeOf: ObjectGetPrototypeOf, setPrototypeOf: ObjectSetPrototypeOf, entries: ObjectEntries } = Object, { prototype: ArrayPrototype, isArray: ArrayIsArray, from: ArrayFrom } = Array, { min: MathMin, max: MathMax, floor: MathFloor } = Math, { parse: JSONParse, stringify: JSONStringify } = JSON, { ownKeys: ReflectOwnKeys } = Reflect, { iterator: SymbolIterator } = Symbol, { fromCodePoint: StringFromCodePoint } = String, { now: DateNow } = Date;
12
+ //#endregion
13
+ export { ObjectValues as _, JSONStringify as a, ObjectAssign as c, ObjectEntries as d, ObjectFreeze as f, ObjectPrototype as g, ObjectPreventExtensions as h, JSONParse as i, ObjectCreate as l, ObjectKeys as m, ArrayIsArray as n, MathMax as o, ObjectHasOwn as p, DateNow as r, MathMin as s, ArrayFrom as t, ObjectDefineProperty as u, StringFromCodePoint as v, SymbolIterator as y };
package/dist/index.d.ts CHANGED
@@ -145,43 +145,6 @@ type CustomComponent = string | {
145
145
  * }
146
146
  * }
147
147
  * ]
148
- * }
149
- * });
150
- * ```
151
- *
152
- * `oxlint.config.ts`
153
- *
154
- * ```ts
155
- * import { defineConfig } from "oxlint";
156
- *
157
- * export default defineConfig({
158
- * plugins: ["import", "typescript", "unicorn"],
159
- * env: {
160
- * "browser": true
161
- * },
162
- * globals: {
163
- * "foo": "readonly"
164
- * },
165
- * settings: {
166
- * react: {
167
- * version: "18.2.0"
168
- * },
169
- * custom: { option: true }
170
- * },
171
- * rules: {
172
- * "eqeqeq": "warn",
173
- * "import/no-cycle": "error",
174
- * "react/self-closing-comp": ["error", { "html": false }]
175
- * },
176
- * overrides: [
177
- * {
178
- * files: ["*.test.ts", "*.spec.ts"],
179
- * rules: {
180
- * "@typescript-eslint/no-explicit-any": "off"
181
- * }
182
- * }
183
- * ]
184
- * }
185
148
  * });
186
149
  * ```
187
150
  */
@@ -189,7 +152,7 @@ interface Oxlintrc$1 {
189
152
  /**
190
153
  * Schema URI for editor tooling.
191
154
  */
192
- $schema?: string | null;
155
+ $schema?: string;
193
156
  categories?: RuleCategories;
194
157
  /**
195
158
  * Environments enable and disable collections of global variables.
@@ -216,7 +179,7 @@ interface Oxlintrc$1 {
216
179
  * Read more about JS plugins in
217
180
  * [the docs](https://oxc.rs/docs/guide/usage/linter/js-plugins.html).
218
181
  *
219
- * Note: JS plugins are experimental and not subject to semver.
182
+ * Note: JS plugins are in alpha and not subject to semver.
220
183
  *
221
184
  * Examples:
222
185
  *
@@ -271,7 +234,7 @@ interface Oxlintrc$1 {
271
234
  * NOTE: Setting the `plugins` field will overwrite the base set of plugins.
272
235
  * The `plugins` array should reflect all of the plugins you want to use.
273
236
  */
274
- plugins?: LintPlugins | null;
237
+ plugins?: LintPlugins;
275
238
  /**
276
239
  * Example
277
240
  *
@@ -373,26 +336,26 @@ interface OxlintGlobals {
373
336
  * Options for the linter.
374
337
  */
375
338
  interface OxlintOptions {
376
- /**
377
- * Report unused disable directives (e.g. `// oxlint-disable-line` or `// eslint-disable-line`).
378
- *
379
- * Equivalent to passing `--report-unused-disable-directives-severity` on the CLI.
380
- * CLI flags take precedence over this value when both are set.
381
- * Only supported in the root configuration file.
382
- */
383
- reportUnusedDisableDirectives?: AllowWarnDeny | null;
384
339
  /**
385
340
  * Ensure warnings produce a non-zero exit code.
386
341
  *
387
342
  * Equivalent to passing `--deny-warnings` on the CLI.
388
343
  */
389
- denyWarnings?: boolean | null;
344
+ denyWarnings?: boolean;
390
345
  /**
391
346
  * Specify a warning threshold. Exits with an error status if warnings exceed this value.
392
347
  *
393
348
  * Equivalent to passing `--max-warnings` on the CLI.
394
349
  */
395
- maxWarnings?: number | null;
350
+ maxWarnings?: number;
351
+ /**
352
+ * Report unused disable directives (e.g. `// oxlint-disable-line` or `// eslint-disable-line`).
353
+ *
354
+ * Equivalent to passing `--report-unused-disable-directives-severity` on the CLI.
355
+ * CLI flags take precedence over this value when both are set.
356
+ * Only supported in the root configuration file.
357
+ */
358
+ reportUnusedDisableDirectives?: AllowWarnDeny;
396
359
  /**
397
360
  * Enable rules that require type information.
398
361
  *
@@ -400,7 +363,7 @@ interface OxlintOptions {
400
363
  *
401
364
  * Note that this requires the `oxlint-tsgolint` package to be installed.
402
365
  */
403
- typeAware?: boolean | null;
366
+ typeAware?: boolean;
404
367
  /**
405
368
  * Enable experimental type checking (includes TypeScript compiler diagnostics).
406
369
  *
@@ -408,13 +371,13 @@ interface OxlintOptions {
408
371
  *
409
372
  * Note that this requires the `oxlint-tsgolint` package to be installed.
410
373
  */
411
- typeCheck?: boolean | null;
374
+ typeCheck?: boolean;
412
375
  }
413
376
  interface OxlintOverride {
414
377
  /**
415
378
  * Environments enable and disable collections of global variables.
416
379
  */
417
- env?: OxlintEnv | null;
380
+ env?: OxlintEnv;
418
381
  /**
419
382
  * A list of glob patterns to override.
420
383
  *
@@ -425,21 +388,21 @@ interface OxlintOverride {
425
388
  /**
426
389
  * Enabled or disabled specific global variables.
427
390
  */
428
- globals?: OxlintGlobals | null;
391
+ globals?: OxlintGlobals;
429
392
  /**
430
393
  * JS plugins for this override, allows usage of ESLint plugins with Oxlint.
431
394
  *
432
395
  * Read more about JS plugins in
433
396
  * [the docs](https://oxc.rs/docs/guide/usage/linter/js-plugins.html).
434
397
  *
435
- * Note: JS plugins are experimental and not subject to semver.
398
+ * Note: JS plugins are in alpha and not subject to semver.
436
399
  */
437
400
  jsPlugins?: null | ExternalPluginEntry[];
438
401
  /**
439
402
  * Optionally change what plugins are enabled for this override. When
440
403
  * omitted, the base config's plugins are used.
441
404
  */
442
- plugins?: LintPlugins | null;
405
+ plugins?: LintPlugins;
443
406
  rules?: DummyRuleMap;
444
407
  }
445
408
  /**
@@ -587,7 +550,7 @@ interface JSXA11YPluginSettings {
587
550
  * Will be treated as an `h3`. If not set, this component will be treated
588
551
  * as a `Box`.
589
552
  */
590
- polymorphicPropName?: string | null;
553
+ polymorphicPropName?: string;
591
554
  [k: string]: unknown;
592
555
  }
593
556
  /**
@@ -699,7 +662,7 @@ interface ReactPluginSettings {
699
662
  * }
700
663
  * ```
701
664
  */
702
- version?: string | null;
665
+ version?: string;
703
666
  [k: string]: unknown;
704
667
  }
705
668
  /**