0.0.10 • Published 1 year ago

stylelint-bem-newbie v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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
0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago