From 558b588fc4159d6342a1deaa57b5a8008c5fe272 Mon Sep 17 00:00:00 2001 From: camc314 <18101008+camc314@users.noreply.github.com> Date: Fri, 30 Jan 2026 14:59:48 +0000 Subject: [PATCH] feat(linter/prefer-namespace-keyword): move to correctness (#18733) this is going to be a hard parser error in a future release, so lets move this rule to correctness to allow people to take advantage of the fixer and migrate their code --- ...ignore fixtures__linter__nan.js@oxlint.snap | 2 +- ...tern _____.vue fixtures__linter@oxlint.snap | 2 +- ...ll -D no-cycle fixtures__flow__@oxlint.snap | 2 +- ...lugin fixtures__flow__index.mjs@oxlint.snap | 2 +- ...s fixtures__linter__debugger.js@oxlint.snap | 2 +- ...r fixtures__linter__debugger.js@oxlint.snap | 2 +- ...fixtures__eslintrc_env__test.js@oxlint.snap | 2 +- ...son fixtures__no_undef__test.js@oxlint.snap | 2 +- ...nore_patterns__ignore_extension@oxlint.snap | 2 +- ...erns__ignore_extension__main.js@oxlint.snap | 2 +- ...fixtures__eslintrc_env__test.js@oxlint.snap | 2 +- ...fixtures__eslintrc_off__test.js@oxlint.snap | 2 +- ...n fixtures__linter__debugger.js@oxlint.snap | 2 +- ...xtures__no_console_off__test.js@oxlint.snap | 2 +- ... fixtures__overrides__other.jsx@oxlint.snap | 6 +++--- ...config.json fixtures__overrides@oxlint.snap | 2 +- ...res__typescript_eslint__test.ts@oxlint.snap | 2 +- ...fixtures__astro__debugger.astro@oxlint.snap | 2 +- .../snapshots/_fixtures__linter@oxlint.snap | 2 +- ...ger.js fixtures__linter__nan.js@oxlint.snap | 2 +- .../_fixtures__linter__debugger.js@oxlint.snap | 2 +- ..._fixtures__linter__js_as_jsx.js@oxlint.snap | 2 +- ...xtures__svelte__debugger.svelte@oxlint.snap | 2 +- .../_fixtures__vue__debugger.vue@oxlint.snap | 2 +- .../_fixtures__vue__empty.vue@oxlint.snap | 2 +- .../_fixtures__vue__invalid.vue@oxlint.snap | 2 +- .../oxlint/src/snapshots/_foo.asdf@oxlint.snap | 2 +- ...nore_directory_-c eslintrc.json@oxlint.snap | 2 +- ...rc.json --ignore-pattern _.ts .@oxlint.snap | 2 +- ...es__cross_module_nested_config_@oxlint.snap | 2 +- .../fixtures__dot_folder_@oxlint.snap | 2 +- ...ds_rules_config.json console.js@oxlint.snap | 2 +- ..._extends_config.json console.js@oxlint.snap | 2 +- ..._config_--disable-nested-config@oxlint.snap | 2 +- ...tures__extends_config_overrides@oxlint.snap | 2 +- ...res__ignore_patterns_symlink_ .@oxlint.snap | 4 ++-- ...port-plugin -D import__no-cycle@oxlint.snap | 2 +- ...__issue_10394_-c .oxlintrc.json@oxlint.snap | 2 +- .../fixtures__linter_debugger.js@oxlint.snap | 2 +- ...s_with_plugin_-c .oxlintrc.json@oxlint.snap | 2 +- ...eport-unused-disable-directives@oxlint.snap | 2 +- ...olint_config_error_--type-aware@oxlint.snap | 2 +- ...ed-disable-directives unused.ts@oxlint.snap | 2 +- ...directives_--type-aware test.ts@oxlint.snap | 2 +- ...e-aware -D no-floating-promises@oxlint.snap | 2 +- .../snapshots/fixtures_issue_10054@oxlint.snap | 2 +- apps/oxlint/test/fixtures/basic/output.snap.md | 2 +- .../typescript/prefer_namespace_keyword.rs | 10 +++++++++- .../typescript_prefer_namespace_keyword.snap | 18 ++++++++++++------ 49 files changed, 71 insertions(+), 57 deletions(-) diff --git a/apps/oxlint/src/snapshots/_--ignore-path fixtures__linter__.customignore --no-ignore fixtures__linter__nan.js@oxlint.snap b/apps/oxlint/src/snapshots/_--ignore-path fixtures__linter__.customignore --no-ignore fixtures__linter__nan.js@oxlint.snap index 49e3ff6c9baee..df01b734c4ec8 100644 --- a/apps/oxlint/src/snapshots/_--ignore-path fixtures__linter__.customignore --no-ignore fixtures__linter__nan.js@oxlint.snap +++ b/apps/oxlint/src/snapshots/_--ignore-path fixtures__linter__.customignore --no-ignore fixtures__linter__nan.js@oxlint.snap @@ -21,7 +21,7 @@ working directory: help: Use the `isNaN` function to compare with NaN. Found 2 warnings and 0 errors. -Finished in ms on 1 file with 90 rules using 1 threads. +Finished in ms on 1 file with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_--ignore-pattern _____.js --ignore-pattern _____.vue fixtures__linter@oxlint.snap b/apps/oxlint/src/snapshots/_--ignore-pattern _____.js --ignore-pattern _____.vue fixtures__linter@oxlint.snap index b3f067bddb9cb..02c6a02f2570d 100644 --- a/apps/oxlint/src/snapshots/_--ignore-pattern _____.js --ignore-pattern _____.vue fixtures__linter@oxlint.snap +++ b/apps/oxlint/src/snapshots/_--ignore-pattern _____.js --ignore-pattern _____.vue fixtures__linter@oxlint.snap @@ -6,7 +6,7 @@ arguments: --ignore-pattern **/*.js --ignore-pattern **/*.vue fixtures/linter working directory: ---------- Found 0 warnings and 0 errors. -Finished in ms on 0 files with 90 rules using 1 threads. +Finished in ms on 0 files with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_--import-plugin -A all -D no-cycle fixtures__flow__@oxlint.snap b/apps/oxlint/src/snapshots/_--import-plugin -A all -D no-cycle fixtures__flow__@oxlint.snap index c57b9f8d341d8..039fc3892c4f9 100644 --- a/apps/oxlint/src/snapshots/_--import-plugin -A all -D no-cycle fixtures__flow__@oxlint.snap +++ b/apps/oxlint/src/snapshots/_--import-plugin -A all -D no-cycle fixtures__flow__@oxlint.snap @@ -6,7 +6,7 @@ arguments: --import-plugin -A all -D no-cycle fixtures/flow/ working directory: ---------- Found 0 warnings and 0 errors. -Finished in ms on 2 files with 92 rules using 1 threads. +Finished in ms on 2 files with 93 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_--import-plugin fixtures__flow__index.mjs@oxlint.snap b/apps/oxlint/src/snapshots/_--import-plugin fixtures__flow__index.mjs@oxlint.snap index 2bab12e62eac9..bb646dbee0894 100644 --- a/apps/oxlint/src/snapshots/_--import-plugin fixtures__flow__index.mjs@oxlint.snap +++ b/apps/oxlint/src/snapshots/_--import-plugin fixtures__flow__index.mjs@oxlint.snap @@ -6,7 +6,7 @@ arguments: --import-plugin fixtures/flow/index.mjs working directory: ---------- Found 0 warnings and 0 errors. -Finished in ms on 1 file with 92 rules using 1 threads. +Finished in ms on 1 file with 93 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_-D correctness fixtures__linter__debugger.js@oxlint.snap b/apps/oxlint/src/snapshots/_-D correctness fixtures__linter__debugger.js@oxlint.snap index f13669bc15add..f7c93e5527d1e 100644 --- a/apps/oxlint/src/snapshots/_-D correctness fixtures__linter__debugger.js@oxlint.snap +++ b/apps/oxlint/src/snapshots/_-D correctness fixtures__linter__debugger.js@oxlint.snap @@ -14,7 +14,7 @@ working directory: help: Remove the debugger statement Found 0 warnings and 1 error. -Finished in ms on 1 file with 90 rules using 1 threads. +Finished in ms on 1 file with 91 rules using 1 threads. ---------- CLI result: LintFoundErrors ---------- diff --git a/apps/oxlint/src/snapshots/_-W correctness -A no-debugger fixtures__linter__debugger.js@oxlint.snap b/apps/oxlint/src/snapshots/_-W correctness -A no-debugger fixtures__linter__debugger.js@oxlint.snap index 71a09abed9cd8..f7089e7650e51 100644 --- a/apps/oxlint/src/snapshots/_-W correctness -A no-debugger fixtures__linter__debugger.js@oxlint.snap +++ b/apps/oxlint/src/snapshots/_-W correctness -A no-debugger fixtures__linter__debugger.js@oxlint.snap @@ -6,7 +6,7 @@ arguments: -W correctness -A no-debugger fixtures/linter/debugger.js working directory: ---------- Found 0 warnings and 0 errors. -Finished in ms on 1 file with 89 rules using 1 threads. +Finished in ms on 1 file with 90 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_-W no-undef -c fixtures__eslintrc_env__eslintrc_no_env.json fixtures__eslintrc_env__test.js@oxlint.snap b/apps/oxlint/src/snapshots/_-W no-undef -c fixtures__eslintrc_env__eslintrc_no_env.json fixtures__eslintrc_env__test.js@oxlint.snap index 4df6c0c88b381..72ae64f56bf00 100644 --- a/apps/oxlint/src/snapshots/_-W no-undef -c fixtures__eslintrc_env__eslintrc_no_env.json fixtures__eslintrc_env__test.js@oxlint.snap +++ b/apps/oxlint/src/snapshots/_-W no-undef -c fixtures__eslintrc_env__eslintrc_no_env.json fixtures__eslintrc_env__test.js@oxlint.snap @@ -13,7 +13,7 @@ working directory: `---- Found 1 warning and 0 errors. -Finished in ms on 1 file with 91 rules using 1 threads. +Finished in ms on 1 file with 92 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_-W no-undef -c fixtures__no_undef__eslintrc.json fixtures__no_undef__test.js@oxlint.snap b/apps/oxlint/src/snapshots/_-W no-undef -c fixtures__no_undef__eslintrc.json fixtures__no_undef__test.js@oxlint.snap index b1079a68e09f5..dab131d064d91 100644 --- a/apps/oxlint/src/snapshots/_-W no-undef -c fixtures__no_undef__eslintrc.json fixtures__no_undef__test.js@oxlint.snap +++ b/apps/oxlint/src/snapshots/_-W no-undef -c fixtures__no_undef__eslintrc.json fixtures__no_undef__test.js@oxlint.snap @@ -13,7 +13,7 @@ working directory: `---- Found 1 warning and 0 errors. -Finished in ms on 1 file with 91 rules using 1 threads. +Finished in ms on 1 file with 92 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_-c fixtures__config_ignore_patterns__ignore_extension__eslintrc.json fixtures__config_ignore_patterns__ignore_extension@oxlint.snap b/apps/oxlint/src/snapshots/_-c fixtures__config_ignore_patterns__ignore_extension__eslintrc.json fixtures__config_ignore_patterns__ignore_extension@oxlint.snap index d7da63202623c..8ac8599e21b53 100644 --- a/apps/oxlint/src/snapshots/_-c fixtures__config_ignore_patterns__ignore_extension__eslintrc.json fixtures__config_ignore_patterns__ignore_extension@oxlint.snap +++ b/apps/oxlint/src/snapshots/_-c fixtures__config_ignore_patterns__ignore_extension__eslintrc.json fixtures__config_ignore_patterns__ignore_extension@oxlint.snap @@ -12,7 +12,7 @@ working directory: help: Delete this file or add some code to it. Found 1 warning and 0 errors. -Finished in ms on 1 file with 90 rules using 1 threads. +Finished in ms on 1 file with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_-c fixtures__config_ignore_patterns__ignore_extension__eslintrc.json fixtures__config_ignore_patterns__ignore_extension__main.js@oxlint.snap b/apps/oxlint/src/snapshots/_-c fixtures__config_ignore_patterns__ignore_extension__eslintrc.json fixtures__config_ignore_patterns__ignore_extension__main.js@oxlint.snap index 38ed18851cd68..00b2ce95d83d5 100644 --- a/apps/oxlint/src/snapshots/_-c fixtures__config_ignore_patterns__ignore_extension__eslintrc.json fixtures__config_ignore_patterns__ignore_extension__main.js@oxlint.snap +++ b/apps/oxlint/src/snapshots/_-c fixtures__config_ignore_patterns__ignore_extension__eslintrc.json fixtures__config_ignore_patterns__ignore_extension__main.js@oxlint.snap @@ -6,7 +6,7 @@ arguments: -c fixtures/config_ignore_patterns/ignore_extension/eslintrc.json fix working directory: ---------- Found 0 warnings and 0 errors. -Finished in ms on 0 files with 90 rules using 1 threads. +Finished in ms on 0 files with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_-c fixtures__eslintrc_env__eslintrc_env_browser.json fixtures__eslintrc_env__test.js@oxlint.snap b/apps/oxlint/src/snapshots/_-c fixtures__eslintrc_env__eslintrc_env_browser.json fixtures__eslintrc_env__test.js@oxlint.snap index e87c948edcdc2..b4d0be7cdbb79 100644 --- a/apps/oxlint/src/snapshots/_-c fixtures__eslintrc_env__eslintrc_env_browser.json fixtures__eslintrc_env__test.js@oxlint.snap +++ b/apps/oxlint/src/snapshots/_-c fixtures__eslintrc_env__eslintrc_env_browser.json fixtures__eslintrc_env__test.js@oxlint.snap @@ -6,7 +6,7 @@ arguments: -c fixtures/eslintrc_env/eslintrc_env_browser.json fixtures/eslintrc_ working directory: ---------- Found 0 warnings and 0 errors. -Finished in ms on 1 file with 91 rules using 1 threads. +Finished in ms on 1 file with 92 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_-c fixtures__eslintrc_off__eslintrc.json fixtures__eslintrc_off__test.js@oxlint.snap b/apps/oxlint/src/snapshots/_-c fixtures__eslintrc_off__eslintrc.json fixtures__eslintrc_off__test.js@oxlint.snap index e2f0159b7265a..18c7b3229c39b 100644 --- a/apps/oxlint/src/snapshots/_-c fixtures__eslintrc_off__eslintrc.json fixtures__eslintrc_off__test.js@oxlint.snap +++ b/apps/oxlint/src/snapshots/_-c fixtures__eslintrc_off__eslintrc.json fixtures__eslintrc_off__test.js@oxlint.snap @@ -12,7 +12,7 @@ working directory: help: Delete this file or add some code to it. Found 1 warning and 0 errors. -Finished in ms on 1 file with 90 rules using 1 threads. +Finished in ms on 1 file with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_-c fixtures__linter__eslintrc.json fixtures__linter__debugger.js@oxlint.snap b/apps/oxlint/src/snapshots/_-c fixtures__linter__eslintrc.json fixtures__linter__debugger.js@oxlint.snap index f6379bce7eea5..928917f659eaa 100644 --- a/apps/oxlint/src/snapshots/_-c fixtures__linter__eslintrc.json fixtures__linter__debugger.js@oxlint.snap +++ b/apps/oxlint/src/snapshots/_-c fixtures__linter__eslintrc.json fixtures__linter__debugger.js@oxlint.snap @@ -14,7 +14,7 @@ working directory: help: Remove the debugger statement Found 0 warnings and 1 error. -Finished in ms on 1 file with 90 rules using 1 threads. +Finished in ms on 1 file with 91 rules using 1 threads. ---------- CLI result: LintFoundErrors ---------- diff --git a/apps/oxlint/src/snapshots/_-c fixtures__no_console_off__eslintrc.json fixtures__no_console_off__test.js@oxlint.snap b/apps/oxlint/src/snapshots/_-c fixtures__no_console_off__eslintrc.json fixtures__no_console_off__test.js@oxlint.snap index db31643b5d850..a286d5ccc984a 100644 --- a/apps/oxlint/src/snapshots/_-c fixtures__no_console_off__eslintrc.json fixtures__no_console_off__test.js@oxlint.snap +++ b/apps/oxlint/src/snapshots/_-c fixtures__no_console_off__eslintrc.json fixtures__no_console_off__test.js@oxlint.snap @@ -6,7 +6,7 @@ arguments: -c fixtures/no_console_off/eslintrc.json fixtures/no_console_off/test working directory: ---------- Found 0 warnings and 0 errors. -Finished in ms on 1 file with 90 rules using 1 threads. +Finished in ms on 1 file with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_-c fixtures__overrides__.oxlintrc.json fixtures__overrides__test.js -c fixtures__overrides__.oxlintrc.json fixtures__overrides__test.ts -c fixtures__overrides__.oxlintrc.json fixtures__overrides__other.jsx@oxlint.snap b/apps/oxlint/src/snapshots/_-c fixtures__overrides__.oxlintrc.json fixtures__overrides__test.js -c fixtures__overrides__.oxlintrc.json fixtures__overrides__test.ts -c fixtures__overrides__.oxlintrc.json fixtures__overrides__other.jsx@oxlint.snap index a51e6f3d3458c..0a6eef710047d 100644 --- a/apps/oxlint/src/snapshots/_-c fixtures__overrides__.oxlintrc.json fixtures__overrides__test.js -c fixtures__overrides__.oxlintrc.json fixtures__overrides__test.ts -c fixtures__overrides__.oxlintrc.json fixtures__overrides__other.jsx@oxlint.snap +++ b/apps/oxlint/src/snapshots/_-c fixtures__overrides__.oxlintrc.json fixtures__overrides__test.js -c fixtures__overrides__.oxlintrc.json fixtures__overrides__test.ts -c fixtures__overrides__.oxlintrc.json fixtures__overrides__other.jsx@oxlint.snap @@ -15,7 +15,7 @@ working directory: help: Replace var with let or const Found 0 warnings and 1 error. -Finished in ms on 1 file with 92 rules using 1 threads. +Finished in ms on 1 file with 93 rules using 1 threads. ---------- CLI result: LintFoundErrors ---------- @@ -42,7 +42,7 @@ working directory: help: Delete this console statement. Found 1 warning and 1 error. -Finished in ms on 1 file with 92 rules using 1 threads. +Finished in ms on 1 file with 93 rules using 1 threads. ---------- CLI result: LintFoundErrors ---------- @@ -61,7 +61,7 @@ working directory: help: Replace var with let or const Found 0 warnings and 1 error. -Finished in ms on 1 file with 92 rules using 1 threads. +Finished in ms on 1 file with 93 rules using 1 threads. ---------- CLI result: LintFoundErrors ---------- diff --git a/apps/oxlint/src/snapshots/_-c fixtures__overrides__directories-config.json fixtures__overrides@oxlint.snap b/apps/oxlint/src/snapshots/_-c fixtures__overrides__directories-config.json fixtures__overrides@oxlint.snap index c7612638866cf..3840747d95194 100644 --- a/apps/oxlint/src/snapshots/_-c fixtures__overrides__directories-config.json fixtures__overrides@oxlint.snap +++ b/apps/oxlint/src/snapshots/_-c fixtures__overrides__directories-config.json fixtures__overrides@oxlint.snap @@ -35,7 +35,7 @@ working directory: help: Remove the debugger statement Found 2 warnings and 2 errors. -Finished in ms on 7 files with 89 rules using 1 threads. +Finished in ms on 7 files with 90 rules using 1 threads. ---------- CLI result: LintFoundErrors ---------- diff --git a/apps/oxlint/src/snapshots/_-c fixtures__typescript_eslint__eslintrc.json fixtures__typescript_eslint__test.ts@oxlint.snap b/apps/oxlint/src/snapshots/_-c fixtures__typescript_eslint__eslintrc.json fixtures__typescript_eslint__test.ts@oxlint.snap index b8988bf199a9d..083044525eec0 100644 --- a/apps/oxlint/src/snapshots/_-c fixtures__typescript_eslint__eslintrc.json fixtures__typescript_eslint__test.ts@oxlint.snap +++ b/apps/oxlint/src/snapshots/_-c fixtures__typescript_eslint__eslintrc.json fixtures__typescript_eslint__test.ts@oxlint.snap @@ -39,7 +39,7 @@ working directory: help: Consider using this expression or removing it Found 3 warnings and 1 error. -Finished in ms on 1 file with 65 rules using 1 threads. +Finished in ms on 1 file with 66 rules using 1 threads. ---------- CLI result: LintFoundErrors ---------- diff --git a/apps/oxlint/src/snapshots/_fixtures__astro__debugger.astro@oxlint.snap b/apps/oxlint/src/snapshots/_fixtures__astro__debugger.astro@oxlint.snap index 60825c6d7aa73..be6a8eaf5bb10 100644 --- a/apps/oxlint/src/snapshots/_fixtures__astro__debugger.astro@oxlint.snap +++ b/apps/oxlint/src/snapshots/_fixtures__astro__debugger.astro@oxlint.snap @@ -43,7 +43,7 @@ working directory: help: Remove the debugger statement Found 4 warnings and 0 errors. -Finished in ms on 1 file with 90 rules using 1 threads. +Finished in ms on 1 file with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_fixtures__linter@oxlint.snap b/apps/oxlint/src/snapshots/_fixtures__linter@oxlint.snap index a114099ca1760..952da74136d94 100644 --- a/apps/oxlint/src/snapshots/_fixtures__linter@oxlint.snap +++ b/apps/oxlint/src/snapshots/_fixtures__linter@oxlint.snap @@ -36,7 +36,7 @@ working directory: help: Use the `isNaN` function to compare with NaN. Found 4 warnings and 0 errors. -Finished in ms on 3 files with 90 rules using 1 threads. +Finished in ms on 3 files with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_fixtures__linter__debugger.js fixtures__linter__nan.js@oxlint.snap b/apps/oxlint/src/snapshots/_fixtures__linter__debugger.js fixtures__linter__nan.js@oxlint.snap index 74aafd01923ed..49228ec1f3aed 100644 --- a/apps/oxlint/src/snapshots/_fixtures__linter__debugger.js fixtures__linter__nan.js@oxlint.snap +++ b/apps/oxlint/src/snapshots/_fixtures__linter__debugger.js fixtures__linter__nan.js@oxlint.snap @@ -28,7 +28,7 @@ working directory: help: Use the `isNaN` function to compare with NaN. Found 3 warnings and 0 errors. -Finished in ms on 2 files with 90 rules using 1 threads. +Finished in ms on 2 files with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_fixtures__linter__debugger.js@oxlint.snap b/apps/oxlint/src/snapshots/_fixtures__linter__debugger.js@oxlint.snap index 9ae4edf1028eb..0dbf62180a794 100644 --- a/apps/oxlint/src/snapshots/_fixtures__linter__debugger.js@oxlint.snap +++ b/apps/oxlint/src/snapshots/_fixtures__linter__debugger.js@oxlint.snap @@ -14,7 +14,7 @@ working directory: help: Remove the debugger statement Found 1 warning and 0 errors. -Finished in ms on 1 file with 90 rules using 1 threads. +Finished in ms on 1 file with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_fixtures__linter__js_as_jsx.js@oxlint.snap b/apps/oxlint/src/snapshots/_fixtures__linter__js_as_jsx.js@oxlint.snap index 487104e470577..ae063575bb485 100644 --- a/apps/oxlint/src/snapshots/_fixtures__linter__js_as_jsx.js@oxlint.snap +++ b/apps/oxlint/src/snapshots/_fixtures__linter__js_as_jsx.js@oxlint.snap @@ -15,7 +15,7 @@ working directory: help: Remove the debugger statement Found 1 warning and 0 errors. -Finished in ms on 1 file with 90 rules using 1 threads. +Finished in ms on 1 file with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_fixtures__svelte__debugger.svelte@oxlint.snap b/apps/oxlint/src/snapshots/_fixtures__svelte__debugger.svelte@oxlint.snap index 16b1043203426..9cf0ce2ad8354 100644 --- a/apps/oxlint/src/snapshots/_fixtures__svelte__debugger.svelte@oxlint.snap +++ b/apps/oxlint/src/snapshots/_fixtures__svelte__debugger.svelte@oxlint.snap @@ -34,7 +34,7 @@ working directory: help: Variable declared without assignment. Either assign a value or remove the declaration. Found 3 warnings and 0 errors. -Finished in ms on 1 file with 90 rules using 1 threads. +Finished in ms on 1 file with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_fixtures__vue__debugger.vue@oxlint.snap b/apps/oxlint/src/snapshots/_fixtures__vue__debugger.vue@oxlint.snap index aa8563ba2e597..c2a9c737e0f5c 100644 --- a/apps/oxlint/src/snapshots/_fixtures__vue__debugger.vue@oxlint.snap +++ b/apps/oxlint/src/snapshots/_fixtures__vue__debugger.vue@oxlint.snap @@ -25,7 +25,7 @@ working directory: help: Remove the debugger statement Found 2 warnings and 0 errors. -Finished in ms on 1 file with 90 rules using 1 threads. +Finished in ms on 1 file with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_fixtures__vue__empty.vue@oxlint.snap b/apps/oxlint/src/snapshots/_fixtures__vue__empty.vue@oxlint.snap index 766865545a488..d8fcbd9f0ed2c 100644 --- a/apps/oxlint/src/snapshots/_fixtures__vue__empty.vue@oxlint.snap +++ b/apps/oxlint/src/snapshots/_fixtures__vue__empty.vue@oxlint.snap @@ -6,7 +6,7 @@ arguments: fixtures/vue/empty.vue working directory: ---------- Found 0 warnings and 0 errors. -Finished in ms on 1 file with 90 rules using 1 threads. +Finished in ms on 1 file with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/_fixtures__vue__invalid.vue@oxlint.snap b/apps/oxlint/src/snapshots/_fixtures__vue__invalid.vue@oxlint.snap index 79ac410cf32e1..7b6cfb4b9816c 100644 --- a/apps/oxlint/src/snapshots/_fixtures__vue__invalid.vue@oxlint.snap +++ b/apps/oxlint/src/snapshots/_fixtures__vue__invalid.vue@oxlint.snap @@ -16,7 +16,7 @@ working directory: help: Add an initializer (e.g. ` = undefined`) here Found 0 warnings and 1 error. -Finished in ms on 1 file with 90 rules using 1 threads. +Finished in ms on 1 file with 91 rules using 1 threads. ---------- CLI result: LintFoundErrors ---------- diff --git a/apps/oxlint/src/snapshots/_foo.asdf@oxlint.snap b/apps/oxlint/src/snapshots/_foo.asdf@oxlint.snap index 1b798a7c43d1e..b81716d45e463 100644 --- a/apps/oxlint/src/snapshots/_foo.asdf@oxlint.snap +++ b/apps/oxlint/src/snapshots/_foo.asdf@oxlint.snap @@ -6,7 +6,7 @@ arguments: foo.asdf working directory: ---------- Found 0 warnings and 0 errors. -Finished in ms on 0 files with 90 rules using 1 threads. +Finished in ms on 0 files with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/fixtures__config_ignore_patterns__ignore_directory_-c eslintrc.json@oxlint.snap b/apps/oxlint/src/snapshots/fixtures__config_ignore_patterns__ignore_directory_-c eslintrc.json@oxlint.snap index 3bdc01cc401a3..aef7802b5d124 100644 --- a/apps/oxlint/src/snapshots/fixtures__config_ignore_patterns__ignore_directory_-c eslintrc.json@oxlint.snap +++ b/apps/oxlint/src/snapshots/fixtures__config_ignore_patterns__ignore_directory_-c eslintrc.json@oxlint.snap @@ -14,7 +14,7 @@ working directory: fixtures/config_ignore_patterns/ignore_directory help: Delete this file or add some code to it. Found 1 warning and 0 errors. -Finished in ms on 1 file with 90 rules using 1 threads. +Finished in ms on 1 file with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/fixtures__config_ignore_patterns__with_oxlintrc_-c .__test__eslintrc.json --ignore-pattern _.ts .@oxlint.snap b/apps/oxlint/src/snapshots/fixtures__config_ignore_patterns__with_oxlintrc_-c .__test__eslintrc.json --ignore-pattern _.ts .@oxlint.snap index 2ac7be61bcddb..c27b39e241942 100644 --- a/apps/oxlint/src/snapshots/fixtures__config_ignore_patterns__with_oxlintrc_-c .__test__eslintrc.json --ignore-pattern _.ts .@oxlint.snap +++ b/apps/oxlint/src/snapshots/fixtures__config_ignore_patterns__with_oxlintrc_-c .__test__eslintrc.json --ignore-pattern _.ts .@oxlint.snap @@ -6,7 +6,7 @@ arguments: -c ./test/eslintrc.json --ignore-pattern *.ts . working directory: fixtures/config_ignore_patterns/with_oxlintrc ---------- Found 0 warnings and 0 errors. -Finished in ms on 0 files with 90 rules using 1 threads. +Finished in ms on 0 files with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/fixtures__cross_module_nested_config_@oxlint.snap b/apps/oxlint/src/snapshots/fixtures__cross_module_nested_config_@oxlint.snap index 2dc731fb93959..0a2bab609a77a 100644 --- a/apps/oxlint/src/snapshots/fixtures__cross_module_nested_config_@oxlint.snap +++ b/apps/oxlint/src/snapshots/fixtures__cross_module_nested_config_@oxlint.snap @@ -35,7 +35,7 @@ working directory: fixtures/cross_module_nested_config ╰─────────╯ imports the current file Found 0 warnings and 2 errors. -Finished in ms on 4 files with 90 rules using 1 threads. +Finished in ms on 4 files with 91 rules using 1 threads. ---------- CLI result: LintFoundErrors ---------- diff --git a/apps/oxlint/src/snapshots/fixtures__dot_folder_@oxlint.snap b/apps/oxlint/src/snapshots/fixtures__dot_folder_@oxlint.snap index 1c1db5ea04e82..29a6fc68da7eb 100644 --- a/apps/oxlint/src/snapshots/fixtures__dot_folder_@oxlint.snap +++ b/apps/oxlint/src/snapshots/fixtures__dot_folder_@oxlint.snap @@ -14,7 +14,7 @@ working directory: fixtures/dot_folder help: Remove the debugger statement Found 1 warning and 0 errors. -Finished in ms on 1 file with 90 rules using 1 threads. +Finished in ms on 1 file with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/fixtures__extends_config_--config extends_rules_config.json console.js@oxlint.snap b/apps/oxlint/src/snapshots/fixtures__extends_config_--config extends_rules_config.json console.js@oxlint.snap index 98f0c90b5ef45..e43a4e719bf1a 100644 --- a/apps/oxlint/src/snapshots/fixtures__extends_config_--config extends_rules_config.json console.js@oxlint.snap +++ b/apps/oxlint/src/snapshots/fixtures__extends_config_--config extends_rules_config.json console.js@oxlint.snap @@ -14,7 +14,7 @@ working directory: fixtures/extends_config help: Delete this console statement. Found 0 warnings and 1 error. -Finished in ms on 1 file with 91 rules using 1 threads. +Finished in ms on 1 file with 92 rules using 1 threads. ---------- CLI result: LintFoundErrors ---------- diff --git a/apps/oxlint/src/snapshots/fixtures__extends_config_--config relative_paths__extends_extends_config.json console.js@oxlint.snap b/apps/oxlint/src/snapshots/fixtures__extends_config_--config relative_paths__extends_extends_config.json console.js@oxlint.snap index 3f49edcfc6b41..c0d80834a75f7 100644 --- a/apps/oxlint/src/snapshots/fixtures__extends_config_--config relative_paths__extends_extends_config.json console.js@oxlint.snap +++ b/apps/oxlint/src/snapshots/fixtures__extends_config_--config relative_paths__extends_extends_config.json console.js@oxlint.snap @@ -14,7 +14,7 @@ working directory: fixtures/extends_config help: Delete this console statement. Found 0 warnings and 1 error. -Finished in ms on 1 file with 91 rules using 1 threads. +Finished in ms on 1 file with 92 rules using 1 threads. ---------- CLI result: LintFoundErrors ---------- diff --git a/apps/oxlint/src/snapshots/fixtures__extends_config_--disable-nested-config@oxlint.snap b/apps/oxlint/src/snapshots/fixtures__extends_config_--disable-nested-config@oxlint.snap index 9bf825e0afc9f..494111527b572 100644 --- a/apps/oxlint/src/snapshots/fixtures__extends_config_--disable-nested-config@oxlint.snap +++ b/apps/oxlint/src/snapshots/fixtures__extends_config_--disable-nested-config@oxlint.snap @@ -31,7 +31,7 @@ working directory: fixtures/extends_config help: Remove the debugger statement Found 3 warnings and 0 errors. -Finished in ms on 4 files with 90 rules using 1 threads. +Finished in ms on 4 files with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/fixtures__extends_config_overrides@oxlint.snap b/apps/oxlint/src/snapshots/fixtures__extends_config_overrides@oxlint.snap index 974f4ac651289..10ebf9c079a1b 100644 --- a/apps/oxlint/src/snapshots/fixtures__extends_config_overrides@oxlint.snap +++ b/apps/oxlint/src/snapshots/fixtures__extends_config_overrides@oxlint.snap @@ -40,7 +40,7 @@ working directory: fixtures/extends_config help: Provide an `href` for the `a` element. Found 1 warning and 3 errors. -Finished in ms on 2 files with 90 rules using 1 threads. +Finished in ms on 2 files with 91 rules using 1 threads. ---------- CLI result: LintFoundErrors ---------- diff --git a/apps/oxlint/src/snapshots/fixtures__ignore_patterns_symlink_ .@oxlint.snap b/apps/oxlint/src/snapshots/fixtures__ignore_patterns_symlink_ .@oxlint.snap index 8ba0404a1e885..67f4339c61a06 100644 --- a/apps/oxlint/src/snapshots/fixtures__ignore_patterns_symlink_ .@oxlint.snap +++ b/apps/oxlint/src/snapshots/fixtures__ignore_patterns_symlink_ .@oxlint.snap @@ -6,7 +6,7 @@ arguments: working directory: fixtures/ignore_patterns_symlink ---------- Found 0 warnings and 0 errors. -Finished in ms on 0 files with 90 rules using 1 threads. +Finished in ms on 0 files with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- @@ -16,7 +16,7 @@ arguments: . working directory: fixtures/ignore_patterns_symlink ---------- Found 0 warnings and 0 errors. -Finished in ms on 0 files with 90 rules using 1 threads. +Finished in ms on 0 files with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/fixtures__import-cycle_--import-plugin -D import__no-cycle@oxlint.snap b/apps/oxlint/src/snapshots/fixtures__import-cycle_--import-plugin -D import__no-cycle@oxlint.snap index 43b5029366e7e..afa70401803e1 100644 --- a/apps/oxlint/src/snapshots/fixtures__import-cycle_--import-plugin -D import__no-cycle@oxlint.snap +++ b/apps/oxlint/src/snapshots/fixtures__import-cycle_--import-plugin -D import__no-cycle@oxlint.snap @@ -33,7 +33,7 @@ working directory: fixtures/import-cycle ╰─────────╯ imports the current file Found 0 warnings and 2 errors. -Finished in ms on 2 files with 93 rules using 1 threads. +Finished in ms on 2 files with 94 rules using 1 threads. ---------- CLI result: LintFoundErrors ---------- diff --git a/apps/oxlint/src/snapshots/fixtures__issue_10394_-c .oxlintrc.json@oxlint.snap b/apps/oxlint/src/snapshots/fixtures__issue_10394_-c .oxlintrc.json@oxlint.snap index 0485903ea3364..ef408dbb9572b 100644 --- a/apps/oxlint/src/snapshots/fixtures__issue_10394_-c .oxlintrc.json@oxlint.snap +++ b/apps/oxlint/src/snapshots/fixtures__issue_10394_-c .oxlintrc.json@oxlint.snap @@ -15,7 +15,7 @@ working directory: fixtures/issue_10394 help: Write a meaningful title for your test Found 1 warning and 0 errors. -Finished in ms on 1 file with 90 rules using 1 threads. +Finished in ms on 1 file with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/fixtures__linter_debugger.js@oxlint.snap b/apps/oxlint/src/snapshots/fixtures__linter_debugger.js@oxlint.snap index 5200ce6da822d..6825496ca9bd8 100644 --- a/apps/oxlint/src/snapshots/fixtures__linter_debugger.js@oxlint.snap +++ b/apps/oxlint/src/snapshots/fixtures__linter_debugger.js@oxlint.snap @@ -14,7 +14,7 @@ working directory: fixtures/linter help: Remove the debugger statement Found 1 warning and 0 errors. -Finished in ms on 1 file with 90 rules using 1 threads. +Finished in ms on 1 file with 91 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/fixtures__overrides_with_plugin_-c .oxlintrc.json@oxlint.snap b/apps/oxlint/src/snapshots/fixtures__overrides_with_plugin_-c .oxlintrc.json@oxlint.snap index 2c91c0e13e8e7..cbf60e22c481c 100644 --- a/apps/oxlint/src/snapshots/fixtures__overrides_with_plugin_-c .oxlintrc.json@oxlint.snap +++ b/apps/oxlint/src/snapshots/fixtures__overrides_with_plugin_-c .oxlintrc.json@oxlint.snap @@ -42,7 +42,7 @@ working directory: fixtures/overrides_with_plugin help: Consider removing this declaration. Found 2 warnings and 2 errors. -Finished in ms on 2 files with 90 rules using 1 threads. +Finished in ms on 2 files with 91 rules using 1 threads. ---------- CLI result: LintFoundErrors ---------- diff --git a/apps/oxlint/src/snapshots/fixtures__report_unused_directives_-c .oxlintrc.json --report-unused-disable-directives@oxlint.snap b/apps/oxlint/src/snapshots/fixtures__report_unused_directives_-c .oxlintrc.json --report-unused-disable-directives@oxlint.snap index 34a9ef6ef0214..8c329097f1c7b 100644 --- a/apps/oxlint/src/snapshots/fixtures__report_unused_directives_-c .oxlintrc.json --report-unused-disable-directives@oxlint.snap +++ b/apps/oxlint/src/snapshots/fixtures__report_unused_directives_-c .oxlintrc.json --report-unused-disable-directives@oxlint.snap @@ -321,7 +321,7 @@ working directory: fixtures/report_unused_directives `---- Found 38 warnings and 0 errors. -Finished in ms on 5 files with 91 rules using 1 threads. +Finished in ms on 5 files with 92 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/fixtures__tsgolint_config_error_--type-aware@oxlint.snap b/apps/oxlint/src/snapshots/fixtures__tsgolint_config_error_--type-aware@oxlint.snap index dd203e39868da..4de7e57993665 100644 --- a/apps/oxlint/src/snapshots/fixtures__tsgolint_config_error_--type-aware@oxlint.snap +++ b/apps/oxlint/src/snapshots/fixtures__tsgolint_config_error_--type-aware@oxlint.snap @@ -17,7 +17,7 @@ working directory: fixtures/tsgolint_config_error See https://github.com/oxc-project/tsgolint/issues/351 for more information. Found 0 warnings and 1 error. -Finished in ms on 1 file with 104 rules using 1 threads. +Finished in ms on 1 file with 105 rules using 1 threads. ---------- CLI result: LintFoundErrors ---------- diff --git a/apps/oxlint/src/snapshots/fixtures__tsgolint_disable_directives_--type-aware --report-unused-disable-directives unused.ts@oxlint.snap b/apps/oxlint/src/snapshots/fixtures__tsgolint_disable_directives_--type-aware --report-unused-disable-directives unused.ts@oxlint.snap index 42cabffc21eb1..d8bf7e84c082c 100644 --- a/apps/oxlint/src/snapshots/fixtures__tsgolint_disable_directives_--type-aware --report-unused-disable-directives unused.ts@oxlint.snap +++ b/apps/oxlint/src/snapshots/fixtures__tsgolint_disable_directives_--type-aware --report-unused-disable-directives unused.ts@oxlint.snap @@ -77,7 +77,7 @@ working directory: fixtures/tsgolint_disable_directives `---- Found 8 warnings and 0 errors. -Finished in ms on 1 file with 104 rules using 1 threads. +Finished in ms on 1 file with 105 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/fixtures__tsgolint_disable_directives_--type-aware test.ts@oxlint.snap b/apps/oxlint/src/snapshots/fixtures__tsgolint_disable_directives_--type-aware test.ts@oxlint.snap index b56af084753ff..b64ea102671a4 100644 --- a/apps/oxlint/src/snapshots/fixtures__tsgolint_disable_directives_--type-aware test.ts@oxlint.snap +++ b/apps/oxlint/src/snapshots/fixtures__tsgolint_disable_directives_--type-aware test.ts@oxlint.snap @@ -96,7 +96,7 @@ working directory: fixtures/tsgolint_disable_directives help: The promise must end with a call to .catch, or end with a call to .then with a rejection handler, or be explicitly marked as ignored with the `void` operator. Found 10 warnings and 0 errors. -Finished in ms on 1 file with 104 rules using 1 threads. +Finished in ms on 1 file with 105 rules using 1 threads. ---------- CLI result: LintSucceeded ---------- diff --git a/apps/oxlint/src/snapshots/fixtures__tsgolint_tsconfig_extends_config_err_--type-aware -D no-floating-promises@oxlint.snap b/apps/oxlint/src/snapshots/fixtures__tsgolint_tsconfig_extends_config_err_--type-aware -D no-floating-promises@oxlint.snap index af2feb5093f6a..6114d9ffc8b67 100644 --- a/apps/oxlint/src/snapshots/fixtures__tsgolint_tsconfig_extends_config_err_--type-aware -D no-floating-promises@oxlint.snap +++ b/apps/oxlint/src/snapshots/fixtures__tsgolint_tsconfig_extends_config_err_--type-aware -D no-floating-promises@oxlint.snap @@ -11,7 +11,7 @@ working directory: fixtures/tsgolint_tsconfig_extends_config_err See https://github.com/oxc-project/tsgolint/issues/351 for more information. Found 0 warnings and 1 error. -Finished in ms on 1 file with 104 rules using 1 threads. +Finished in ms on 1 file with 105 rules using 1 threads. ---------- CLI result: LintFoundErrors ---------- diff --git a/apps/oxlint/src/snapshots/fixtures_issue_10054@oxlint.snap b/apps/oxlint/src/snapshots/fixtures_issue_10054@oxlint.snap index 1e733fa4ec7d3..ffeccf8f7bd37 100644 --- a/apps/oxlint/src/snapshots/fixtures_issue_10054@oxlint.snap +++ b/apps/oxlint/src/snapshots/fixtures_issue_10054@oxlint.snap @@ -33,7 +33,7 @@ working directory: fixtures ╰─────────╯ imports the current file Found 0 warnings and 2 errors. -Finished in ms on 2 files with 90 rules using 1 threads. +Finished in ms on 2 files with 91 rules using 1 threads. ---------- CLI result: LintFoundErrors ---------- diff --git a/apps/oxlint/test/fixtures/basic/output.snap.md b/apps/oxlint/test/fixtures/basic/output.snap.md index daf510b90be3b..362239cc8f292 100644 --- a/apps/oxlint/test/fixtures/basic/output.snap.md +++ b/apps/oxlint/test/fixtures/basic/output.snap.md @@ -17,7 +17,7 @@ help: Remove the debugger statement Found 1 warning and 1 error. -Finished in Xms on 1 file with 91 rules using X threads. +Finished in Xms on 1 file with 92 rules using X threads. ``` # stderr diff --git a/crates/oxc_linter/src/rules/typescript/prefer_namespace_keyword.rs b/crates/oxc_linter/src/rules/typescript/prefer_namespace_keyword.rs index 1961502382966..f87f1136402b9 100644 --- a/crates/oxc_linter/src/rules/typescript/prefer_namespace_keyword.rs +++ b/crates/oxc_linter/src/rules/typescript/prefer_namespace_keyword.rs @@ -14,6 +14,14 @@ use crate::{ fn prefer_namespace_keyword_diagnostic(span: Span) -> OxcDiagnostic { OxcDiagnostic::warn("Use `namespace` instead of `module` to declare custom TypeScript modules.") + .with_help("Replace `module` with `namespace` for internal declarations.") + .with_note( + "`module` for internal declarations is no longer supported: treat it as a hard \ + error. Expect it to become a parse error in a future version of TypeScript and Oxlint. See: \ + https://github.com/microsoft/TypeScript/issues/54500, \ + https://github.com/microsoft/TypeScript/issues/62211, \ + https://github.com/microsoft/TypeScript/pull/62876.", + ) .with_label(span) } @@ -44,7 +52,7 @@ declare_oxc_lint!( /// ``` PreferNamespaceKeyword, typescript, - style, + correctness, fix ); diff --git a/crates/oxc_linter/src/snapshots/typescript_prefer_namespace_keyword.snap b/crates/oxc_linter/src/snapshots/typescript_prefer_namespace_keyword.snap index cb8d9a0c43d44..2585269859e4c 100644 --- a/crates/oxc_linter/src/snapshots/typescript_prefer_namespace_keyword.snap +++ b/crates/oxc_linter/src/snapshots/typescript_prefer_namespace_keyword.snap @@ -6,21 +6,24 @@ source: crates/oxc_linter/src/tester.rs 1 │ module foo {} · ───────────── ╰──── - help: Replace `module` with `namespace`. + help: Replace `module` with `namespace` for internal declarations. + note: `module` for internal declarations is no longer supported: treat it as a hard error. Expect it to become a parse error in a future version of TypeScript and Oxlint. See: https://github.com/microsoft/TypeScript/issues/54500, https://github.com/microsoft/TypeScript/issues/62211, https://github.com/microsoft/TypeScript/pull/62876. ⚠ typescript-eslint(prefer-namespace-keyword): Use `namespace` instead of `module` to declare custom TypeScript modules. ╭─[prefer_namespace_keyword.tsx:1:1] 1 │ module A.B {} · ───────────── ╰──── - help: Replace `module` with `namespace`. + help: Replace `module` with `namespace` for internal declarations. + note: `module` for internal declarations is no longer supported: treat it as a hard error. Expect it to become a parse error in a future version of TypeScript and Oxlint. See: https://github.com/microsoft/TypeScript/issues/54500, https://github.com/microsoft/TypeScript/issues/62211, https://github.com/microsoft/TypeScript/pull/62876. ⚠ typescript-eslint(prefer-namespace-keyword): Use `namespace` instead of `module` to declare custom TypeScript modules. ╭─[prefer_namespace_keyword.tsx:1:1] 1 │ declare module foo {} · ───────────────────── ╰──── - help: Replace `module` with `namespace`. + help: Replace `module` with `namespace` for internal declarations. + note: `module` for internal declarations is no longer supported: treat it as a hard error. Expect it to become a parse error in a future version of TypeScript and Oxlint. See: https://github.com/microsoft/TypeScript/issues/54500, https://github.com/microsoft/TypeScript/issues/62211, https://github.com/microsoft/TypeScript/pull/62876. ⚠ typescript-eslint(prefer-namespace-keyword): Use `namespace` instead of `module` to declare custom TypeScript modules. ╭─[prefer_namespace_keyword.tsx:2:9] @@ -30,7 +33,8 @@ source: crates/oxc_linter/src/tester.rs 4 │ ╰─▶ } 5 │ ╰──── - help: Replace `module` with `namespace`. + help: Replace `module` with `namespace` for internal declarations. + note: `module` for internal declarations is no longer supported: treat it as a hard error. Expect it to become a parse error in a future version of TypeScript and Oxlint. See: https://github.com/microsoft/TypeScript/issues/54500, https://github.com/microsoft/TypeScript/issues/62211, https://github.com/microsoft/TypeScript/pull/62876. ⚠ typescript-eslint(prefer-namespace-keyword): Use `namespace` instead of `module` to declare custom TypeScript modules. ╭─[prefer_namespace_keyword.tsx:3:11] @@ -39,7 +43,8 @@ source: crates/oxc_linter/src/tester.rs · ───────────────────── 4 │ } ╰──── - help: Replace `module` with `namespace`. + help: Replace `module` with `namespace` for internal declarations. + note: `module` for internal declarations is no longer supported: treat it as a hard error. Expect it to become a parse error in a future version of TypeScript and Oxlint. See: https://github.com/microsoft/TypeScript/issues/54500, https://github.com/microsoft/TypeScript/issues/62211, https://github.com/microsoft/TypeScript/pull/62876. ⚠ typescript-eslint(prefer-namespace-keyword): Use `namespace` instead of `module` to declare custom TypeScript modules. ╭─[prefer_namespace_keyword.tsx:3:13] @@ -48,4 +53,5 @@ source: crates/oxc_linter/src/tester.rs · ───────────── 4 │ } ╰──── - help: Replace `module` with `namespace`. + help: Replace `module` with `namespace` for internal declarations. + note: `module` for internal declarations is no longer supported: treat it as a hard error. Expect it to become a parse error in a future version of TypeScript and Oxlint. See: https://github.com/microsoft/TypeScript/issues/54500, https://github.com/microsoft/TypeScript/issues/62211, https://github.com/microsoft/TypeScript/pull/62876.