1.5.2 • Published 8 years ago

bemhint-plugins-check-file-entity v1.5.2

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

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')
                ]
            }
        }
    }
};
1.5.2

8 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.0

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago