0.0.1-alpha • Published 10 years ago

cssb-max-descendants v0.0.1-alpha

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

cssb-max-descendants

A css-bouncer plugin for checking against the maximum length of descendants.

Usage

var cssb = require('css-bouncer');
var linter = cssb();
linter.rule('cssb-max-descendants');
var result = linter.lint('div .class #id > ul > li.class {}');
console.log(result);
//[ { location: '1:1',
//    level: 'error',
//    message: 'Descendent length for selector is too long! 5 is more than the maximum of 3.' } ]