From 4388f68131da6c3fa77e7950127624027bc1e39d Mon Sep 17 00:00:00 2001 From: Don Isaac Date: Mon, 29 Jul 2024 14:36:49 -0400 Subject: [PATCH] fix(linter): change typescript-eslint/no-namespace to restriction --- apps/oxlint/fixtures/typescript_eslint/eslintrc.json | 3 ++- crates/oxc_linter/src/rules/typescript/no_namespace.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/oxlint/fixtures/typescript_eslint/eslintrc.json b/apps/oxlint/fixtures/typescript_eslint/eslintrc.json index 35ed3856d2a6d..c7773313f7cd0 100644 --- a/apps/oxlint/fixtures/typescript_eslint/eslintrc.json +++ b/apps/oxlint/fixtures/typescript_eslint/eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "no-loss-of-precision": "off", - "@typescript-eslint/no-loss-of-precision": "error" + "@typescript-eslint/no-loss-of-precision": "error", + "@typescript-eslint/no-namespace": "warn" } } diff --git a/crates/oxc_linter/src/rules/typescript/no_namespace.rs b/crates/oxc_linter/src/rules/typescript/no_namespace.rs index 2a33a5bbc0e19..5bf15bee26ec1 100644 --- a/crates/oxc_linter/src/rules/typescript/no_namespace.rs +++ b/crates/oxc_linter/src/rules/typescript/no_namespace.rs @@ -37,7 +37,7 @@ declare_oxc_lint!( /// declare namespace foo {} /// ``` NoNamespace, - correctness + restriction ); impl Rule for NoNamespace {