Generate Regexp to validate your CSS BEM syntax with linters. Try it on http://gcmznt.github.io/bemex/
npm install --save-dev bemex
bower install --save bemex
var BemEx = require('bemex');
var re = BemEx(config);
<script src="./bemex.js"></script>
<script>
var re = BemEx(config);
</script>
{
blockFormat: 'kebab',
blockPrefix: '',
elementFormat: 'kebab',
elementPrefix: '__',
modifierFormat: 'kebab',
modifierPrefix: '--',
queryFormat: 'kebab',
queryPrefix: '@',
stateFormat: 'kebab',
statePrefix: '-',
states: 'u, is, has, js',
}
var BemEx = require('bemex');
console.log(BemEx.defaults);
pascal, camel, kebab, snake, upperKebab, upperSnake, lower, upper
var BemEx = require('bemex');
console.log(BemEx.formats);
npm run test