bemhint-css-naming
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "bemhint-css-naming", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Plugin for bemhint which validate css selectors", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
# bemhint-css-naming | ||
Плагин проверки именования css классов для [bemhint](https://github.com/bemhint/bemhint). | ||
1. названия css классов соответствуют БЭМ-нотации; | ||
1. в каждом селекторе присутствует класс текущего блока. | ||
Plugin for [bemhint](https://github.com/bemhint/bemhint) which validate css classes. | ||
1. Checks css classes for BEM-notation; | ||
1. Checks for existing target block in the selector. | ||
Пример для блока `my-block` (исключения: `test-*`): | ||
Example for `my-block.css` (exclude: `test-*`) | ||
@@ -28,2 +28,3 @@ ```css | ||
/* will be ignored because of exclude matching */ | ||
.my-block .test-e_x_c_l_u_d_e_d | ||
@@ -42,3 +43,3 @@ { | ||
/* there is no target block */ | ||
/* there is no target block in selector */ | ||
.another-block | ||
@@ -57,11 +58,12 @@ { | ||
## Установка | ||
## How to install | ||
```bash | ||
$ npm install https://github.com/bemhint/bemhint-css-naming.git | ||
$ npm install bemhint-css-naming | ||
``` | ||
## Использование | ||
## How to use | ||
В конфигурационном файле `.bemhint.js` подключить плагин: | ||
Add plugin to `.bemhint.js`: | ||
```js | ||
@@ -75,3 +77,3 @@ module.exports = { | ||
Не проверять соответствие БЭМ-нотации заданные названия классов: | ||
Exclude some classnames from BEM-naming validation: | ||
@@ -78,0 +80,0 @@ ```js |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88
6722