mirror of
https://github.com/danbulant/oxc
synced 2026-05-22 21:58:36 +00:00
fix(linter): s/consistent-type-export/consistent-type-exports (#2065)
This commit is contained in:
parent
7a6261403d
commit
3faa2aa2a8
2 changed files with 5 additions and 5 deletions
|
|
@ -13,7 +13,7 @@ use oxc_span::Span;
|
||||||
use crate::{context::LintContext, rule::Rule};
|
use crate::{context::LintContext, rule::Rule};
|
||||||
|
|
||||||
#[derive(Debug, Error, Diagnostic)]
|
#[derive(Debug, Error, Diagnostic)]
|
||||||
#[error("typescript-eslint(consistent-type-export): Consistent type exports")]
|
#[error("typescript-eslint(consistent-type-exports): Consistent type exports")]
|
||||||
#[diagnostic(severity(warning), help("Consistent type export"))]
|
#[diagnostic(severity(warning), help("Consistent type export"))]
|
||||||
struct ConsistentTypeExportDiagnostic(#[label] pub Span);
|
struct ConsistentTypeExportDiagnostic(#[label] pub Span);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,14 @@
|
||||||
source: crates/oxc_linter/src/tester.rs
|
source: crates/oxc_linter/src/tester.rs
|
||||||
expression: consistent_type_exports
|
expression: consistent_type_exports
|
||||||
---
|
---
|
||||||
⚠ typescript-eslint(consistent-type-export): Consistent type exports
|
⚠ typescript-eslint(consistent-type-exports): Consistent type exports
|
||||||
╭─[consistent_type_exports.tsx:1:1]
|
╭─[consistent_type_exports.tsx:1:1]
|
||||||
1 │ type foo = number; export {foo}
|
1 │ type foo = number; export {foo}
|
||||||
· ───
|
· ───
|
||||||
╰────
|
╰────
|
||||||
help: Consistent type export
|
help: Consistent type export
|
||||||
|
|
||||||
⚠ typescript-eslint(consistent-type-export): Consistent type exports
|
⚠ typescript-eslint(consistent-type-exports): Consistent type exports
|
||||||
╭─[consistent_type_exports.tsx:4:1]
|
╭─[consistent_type_exports.tsx:4:1]
|
||||||
4 │ }
|
4 │ }
|
||||||
5 │ export {TypeNS}
|
5 │ export {TypeNS}
|
||||||
|
|
@ -18,7 +18,7 @@ expression: consistent_type_exports
|
||||||
╰────
|
╰────
|
||||||
help: Consistent type export
|
help: Consistent type export
|
||||||
|
|
||||||
⚠ typescript-eslint(consistent-type-export): Consistent type exports
|
⚠ typescript-eslint(consistent-type-exports): Consistent type exports
|
||||||
╭─[consistent_type_exports.tsx:7:1]
|
╭─[consistent_type_exports.tsx:7:1]
|
||||||
7 │
|
7 │
|
||||||
8 │ export { Alias, IFace, TypeNS };
|
8 │ export { Alias, IFace, TypeNS };
|
||||||
|
|
@ -26,7 +26,7 @@ expression: consistent_type_exports
|
||||||
╰────
|
╰────
|
||||||
help: Consistent type export
|
help: Consistent type export
|
||||||
|
|
||||||
⚠ typescript-eslint(consistent-type-export): Consistent type exports
|
⚠ typescript-eslint(consistent-type-exports): Consistent type exports
|
||||||
╭─[consistent_type_exports.tsx:7:1]
|
╭─[consistent_type_exports.tsx:7:1]
|
||||||
7 │
|
7 │
|
||||||
8 │ export { Alias, IFace, TypeNS };
|
8 │ export { Alias, IFace, TypeNS };
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue