We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Boshen
Dunqing
camc314
leaysgur
Learn more about funding links in repositories.
Report abuse
1 parent 58002e2 commit d318238Copy full SHA for d318238
crates/oxc_linter/src/config/config_builder.rs
@@ -394,7 +394,7 @@ impl RulesCache {
394
"Cannot re-initialize a populated rules cache. It must be cleared first."
395
);
396
397
- let mut all_rules: Vec<_> = if self.plugins.is_all() {
+ let all_rules: Vec<_> = if self.plugins.is_all() {
398
RULES.clone()
399
} else {
400
let mut plugins = self.plugins;
@@ -410,7 +410,6 @@ impl RulesCache {
410
.cloned()
411
.collect()
412
};
413
- all_rules.sort_unstable(); // TODO: do we need to sort? is is already sorted?
414
415
*self.all_rules.borrow_mut() = Some(all_rules);
416
}
0 commit comments