Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

yalovek/bemhint-plugins-check-file-entity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BEM hint plugin for checking file entity

This plugin checks the BEM entity in the file. At this moment it can check only css, postcss, stylus, sass and less files.

For example

File name checkbox_type_button.styl, this is right:

.checkbox.checkbox_type_button .checkbox__control {
    position: absolute;
}

and this is not:

.checkbox.checkbox_type_button .checkbox__control {
    position: absolute;
}

.select {
    display: inline-block;
}

Because, here we have selector with another entity .select without checkbox.

Config example

module.exports = {
    levels: [
        "*.blocks"
    ],

    excludePaths: [
        "node_modueles/**"
    ],

    plugins: {
        "bemhint-plugins-check-file-entity": {
            techs: {
                "styl|css|less|scss": true,
                "post.css": [
                    require('precss')
                ]
            }
        }
    }
};

About

Check file entity

Resources

Stars

Watchers

Forks

Packages

No packages published