Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
chore: add jsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Jan 10, 2023
1 parent 5d9a9ee commit 387bbc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/rome_fs/src/fs/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const DEFAULT_IGNORE: &[&str; 5] = &[".git", ".svn", ".hg", ".yarn", "node_modul
/// Traverse a single directory
fn handle_dir<'scope>(scope: &Scope<'scope>, ctx: &'scope dyn TraversalContext, path: &Path) {
if let Some(file_name) = path.file_name().and_then(OsStr::to_str) {
if DEFAULT_IGNORE.contains(&file_name) {
if DEFAULT_IGNORE_DIRECTORIES.contains(&file_name) {
return;
}
}
Expand Down Expand Up @@ -259,7 +259,7 @@ fn handle_dir_entry<'scope>(
if file_type.is_file() {
if matches!(
path.file_name().and_then(OsStr::to_str),
Some("package.json" | "package-lock.json" | "tsconfig.json")
Some("package.json" | "package-lock.json" | "tsconfig.json" "jsconfig.json")
) {
return;
}
Expand Down

0 comments on commit 387bbc5

Please sign in to comment.