fix(linter): change typescript-eslint/no-namespace to restriction (#4539)

This rule prevents the usage of typescript language features, which is
what the `restriction` category is intended to handle.
This commit is contained in:
Don Isaac 2024-07-30 16:29:27 -04:00 committed by GitHub
parent c9c38a187c
commit 72337b1063
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -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"
}
}

View file

@ -37,7 +37,7 @@ declare_oxc_lint!(
/// declare namespace foo {}
/// ```
NoNamespace,
correctness
restriction
);
impl Rule for NoNamespace {