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

feat(rome_js_analyzer): promote nursery rules #4239

Merged
merged 10 commits into from
Mar 4, 2023
Prev Previous commit
Next Next commit
chore: rename
ematipico committed Mar 4, 2023

Verified

This commit was signed with the committer’s verified signature.
frostming Frost Ming
commit fef2dc7875243bd2b2d93651966877bf50759b9c
6 changes: 3 additions & 3 deletions crates/rome_service/src/configuration/mod.rs
Original file line number Diff line number Diff line change
@@ -215,7 +215,7 @@ pub fn load_config(
Err(err) => {
// base paths from users are not eligible for auto discovery
if !base_path.is_from_user() {
let parent_path = if let Some(path) = configuration_directory.parent() {
let parent_directory = if let Some(path) = configuration_directory.parent() {
if path.is_dir() {
Some(PathBuf::from(path))
} else {
@@ -224,8 +224,8 @@ pub fn load_config(
} else {
None
};
if let Some(new_path) = parent_path {
configuration_directory = new_path;
if let Some(parent_directory) = parent_directory {
configuration_directory = parent_directory;
configuration_path = configuration_directory.join(config_name);
from_parent = true;
continue;