fix(linter): s/consistent-type-export/consistent-type-exports (#2065)

This commit is contained in:
Boshen 2024-01-17 11:03:43 +08:00 committed by GitHub
parent 7a6261403d
commit 3faa2aa2a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -13,7 +13,7 @@ use oxc_span::Span;
use crate::{context::LintContext, rule::Rule};
#[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"))]
struct ConsistentTypeExportDiagnostic(#[label] pub Span);

View file

@ -2,14 +2,14 @@
source: crates/oxc_linter/src/tester.rs
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]
1 │ type foo = number; export {foo}
· ───
╰────
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]
4 │ }
5 │ export {TypeNS}
@ -18,7 +18,7 @@ expression: consistent_type_exports
╰────
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]
7 │
8 │ export { Alias, IFace, TypeNS };
@ -26,7 +26,7 @@ expression: consistent_type_exports
╰────
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]
7 │
8 │ export { Alias, IFace, TypeNS };