mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
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:
parent
c9c38a187c
commit
72337b1063
2 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"rules": {
|
"rules": {
|
||||||
"no-loss-of-precision": "off",
|
"no-loss-of-precision": "off",
|
||||||
"@typescript-eslint/no-loss-of-precision": "error"
|
"@typescript-eslint/no-loss-of-precision": "error",
|
||||||
|
"@typescript-eslint/no-namespace": "warn"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ declare_oxc_lint!(
|
||||||
/// declare namespace foo {}
|
/// declare namespace foo {}
|
||||||
/// ```
|
/// ```
|
||||||
NoNamespace,
|
NoNamespace,
|
||||||
correctness
|
restriction
|
||||||
);
|
);
|
||||||
|
|
||||||
impl Rule for NoNamespace {
|
impl Rule for NoNamespace {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue