Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bemhint-css-naming

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bemhint-css-naming - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc