stylelint-bem-newbie

0.0.10 • Public • Published

bem-newbie tests Publish to NPM

Stylelint BEM rules for newbie

A set of additional Stylelint rules that helps you keep your code in accordance with BEM rules.

This set of rules is designed to be a part of the BEM Project template project, which is based on different technologies and provides much more rules to help you keep your HTML and CSS sources in accordance with BEM rules.

Install

$ npm install --save-dev stylelint-bem-newbie

Usage

Setup plugin in stylelint config:

{
  "plugins": [
    "stylelint-bem-newbie"
  ],
  "rules": {
    "bem-newbie/absolute-has-two-dimensions": [true, { severity: 'warning' }],
    "bem-newbie/animation-explicit-timing-function": true,
    "bem-newbie/class-name-equal-to-file-name": true,
    "bem-newbie/display-deny-inline": true,    
    "bem-newbie/duplicated-property-value-in-media": true,
    "bem-newbie/duplicated-property-value-in-modifier": true,
    "bem-newbie/font-face-declaration-in-fonts-file-only": true,
    "bem-newbie/font-face-duplicate-src": true,
    "bem-newbie/font-weight-file-name": true,
    "bem-newbie/import-bem-path": true,
    "bem-newbie/import-fonts": true,
    "bem-newbie/import-normalize": true,
    ...
  }
}

List of rules

Used technologies:

  • ESLint
  • StyleLint
  • PostCSS
  • BEM

Todo

  1. Add more rules if it is necessary for the BEM Project template project

Package Sidebar

Install

npm i stylelint-bem-newbie

Weekly Downloads

0

Version

0.0.10

License

MIT

Unpacked Size

95.6 kB

Total Files

52

Last publish

Collaborators

  • danignatov