We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fcf56c commit bb4347cCopy full SHA for bb4347c
crates/oxc_linter/src/lib.rs
@@ -167,10 +167,9 @@ impl Linter {
167
#[cfg(debug_assertions)]
168
let mut current_diagnostic_index = 0;
169
170
- let is_partial_loader_file = path
171
- .extension()
172
- .and_then(|ext| ext.to_str())
173
- .is_some_and(|ext| LINT_PARTIAL_LOADER_EXTENSIONS.contains(&ext));
+ let is_partial_loader_file = ctx_host
+ .file_extension()
+ .is_some_and(|ext| LINT_PARTIAL_LOADER_EXTENSIONS.iter().any(|e| e == &ext));
174
175
loop {
176
let mut rules = rules
0 commit comments