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.
static
1 parent 087bd43 commit e0396fdCopy full SHA for e0396fd
crates/oxc_linter/src/disable_directives.rs
@@ -125,7 +125,7 @@ impl<'a> DisableDirectives<'a> {
125
self.used_disable_comments.borrow_mut().push(disable_directive);
126
}
127
128
- pub fn contains(&self, rule_name: &'static str, span: Span) -> bool {
+ pub fn contains(&self, rule_name: &str, span: Span) -> bool {
129
// For `eslint-disable-next-line` and `eslint-disable-line` directives, we only check
130
// if the diagnostic's starting position falls within the disabled interval.
131
// This prevents suppressing diagnostics for larger constructs (like functions) that
0 commit comments