UNPKG

stylint

Version:
24 lines (22 loc) 586 B
'use strict'; // check for specified extend preference module.exports = function checkPlaceholderStyle( line ) { if ( typeof line !== 'string' ) { return; } // first check if line has an extend if ( line.indexOf('@extend ') !== -1 ) { if ( line.indexOf('@extend $') === -1 ) { return false; } else { return true; } } else if ( line.indexOf('@extends ') !== -1 ) { if ( line.indexOf('@extends $') === -1 ) { return false; } else { return true; } } }