import { Ignore } from '../../config' ; export function handler ( classes , fileIgnore , ignore ) { if ( fileIgnore ) { const selectorsToIgnore = fileIgnore . selectors ; ignore = ignore . concat ( selectorsToIgnore ) ; if ( fileIgnore . all ) { return [ ] ; } } classes = classes . filter ( c => { const ignoredSelectorFound = ignore . some ( s => { return c . indexOf ( s ) > - 1 ; } ) ; return ! ignoredSelectorFound ; } ) ; return classes ; }