Skip to main content

find_program_suppressions

Function find_program_suppressions 

Source
pub fn find_program_suppressions(
    comments: &[Comment],
    rule_names: Option<&[String]>,
    flow_suppressions: bool,
) -> Vec<SuppressionRange>
Expand description

Parse eslint-disable/enable and Flow suppression comments from program comments. Equivalent to findProgramSuppressions in Suppression.ts