lib/validate-bemdecl.js
function validateBemDecl(bemDecl, fileName) {
  let errors = [];

  bemDecl.forEach((decl) => {
    errors = errors.concat(validateBemDeclItem(decl, fileName));
  });

  return errors;
}
function validateBemDecl(bemDecl, fileName) {
  let errors = [];

  bemDecl.forEach((decl) => {
    errors = errors.concat(validateBemDeclItem(decl, fileName));
  });

  return errors;
}
function validateBemDecl ( bemDecl , fileName ) { let errors = [ ] ; bemDecl . forEach ( ( decl ) => { errors = errors . concat ( validateBemDeclItem ( decl , fileName ) ) ; } ) ; return errors ; }
Validate BEM declarations

@param {Array} bemDecl
@param {String} fileName
@return {Array} of validation errors
Validate BEM declarations