bemhint-plugins-check-file-entity
Version:
53 lines (40 loc) • 977 B
Markdown
This plugin checks the BEM entity in the file. At this moment it can check only css, postcss, stylus, sass and less files.
File name checkbox_type_button.styl, this is right:
```css
.checkbox.checkbox_type_button .checkbox__control {
position: absolute;
}
```
and this is not:
```css
.checkbox.checkbox_type_button .checkbox__control {
position: absolute;
}
.select {
display: inline-block;
}
```
Because, here we have selector with another entity .select without checkbox.
```js
module.exports = {
levels: [
"*.blocks"
],
excludePaths: [
"node_modueles/**"
],
plugins: {
"bemhint-plugins-check-file-entity": {
techs: {
"styl|css|less|scss": true,
"post.css": [
require('precss')
]
}
}
}
};
```