refactor(linter): rename *_partial_loader files (#1916)

This commit is contained in:
Boshen 2024-01-06 23:56:31 +08:00 committed by GitHub
parent bb6128bfa8
commit 450791ddc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 7 deletions

View file

@ -15,10 +15,7 @@ use miette::NamedSource;
use oxc_allocator::Allocator;
use oxc_diagnostics::{miette, Error, Severity};
use oxc_linter::{
partial_loader::{
vue_partial_loader::VuePartialLoader, JavaScriptSource, PartialLoader,
LINT_PARTIAL_LOADER_EXT,
},
partial_loader::{JavaScriptSource, PartialLoader, LINT_PARTIAL_LOADER_EXT},
LintContext, LintSettings, Linter,
};
use oxc_linter_plugin::{make_relative_path_parts, LinterPlugin};

View file

@ -1,9 +1,9 @@
pub mod astro_partial_loader;
pub mod vue_partial_loader;
mod astro;
mod vue;
use oxc_span::SourceType;
use self::{astro_partial_loader::AstroPartialLoader, vue_partial_loader::VuePartialLoader};
pub use self::{astro::AstroPartialLoader, vue::VuePartialLoader};
pub const LINT_PARTIAL_LOADER_EXT: &[&str] = &["vue", "astro"];