All Projects → BedrockStreaming → bemlinter

BedrockStreaming / bemlinter

Licence: MIT license
A cli tool to lint bem component isolation in CSS / SCSS files

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to bemlinter

Postcss Bem Linter
A BEM linter for postcss
Stars: ✭ 505 (+3266.67%)
Mutual labels:  bem, linter
vscode-stylelint-plus
A Visual Studio Code extension to lint CSS/SCSS/Less with stylelint, support auto fix on save.
Stars: ✭ 32 (+113.33%)
Mutual labels:  linter
golangci-lint
Fast linters Runner for Go
Stars: ✭ 11,019 (+73360%)
Mutual labels:  linter
SublimePapyrus
A Sublime Text 2 and 3 package for the Papyrus scripting language.
Stars: ✭ 44 (+193.33%)
Mutual labels:  linter
elm-review
Analyzes Elm projects, to help find mistakes before your users find them.
Stars: ✭ 195 (+1200%)
Mutual labels:  linter
lint-sass-vue
Atom linter for Vue.js
Stars: ✭ 19 (+26.67%)
Mutual labels:  linter
buttono
A flexible Sass mixin for creating BEM-style buttons.
Stars: ✭ 82 (+446.67%)
Mutual labels:  bem
litho-lint-rules
Lint rules for Litho by Facebook http://fblitho.com/
Stars: ✭ 14 (-6.67%)
Mutual labels:  linter
SublimeLinter-contrib-markdownlint
A Sublime Text Linter for Markdown/CommonMark files.
Stars: ✭ 29 (+93.33%)
Mutual labels:  linter
vscode-elixir-credo
VSCode support for Elixir Linter 'Credo'.
Stars: ✭ 20 (+33.33%)
Mutual labels:  linter
rubocop-linter-action
Rubocop Linter Action: A GitHub Action to run Rubocop against your code!
Stars: ✭ 86 (+473.33%)
Mutual labels:  linter
webpack-bem-loader
Webpack BEM loader
Stars: ✭ 25 (+66.67%)
Mutual labels:  bem
hyperlink
Very fast link checker for CI.
Stars: ✭ 85 (+466.67%)
Mutual labels:  linter
constyble
CSS complexity linter
Stars: ✭ 92 (+513.33%)
Mutual labels:  linter
bem-flashcards
Simple single-page flashcards application based on the bem-core/bem-history and BEM methodology
Stars: ✭ 19 (+26.67%)
Mutual labels:  bem
atom-perl6-editor-tools
A collection of useful Perl 6 editor tools
Stars: ✭ 19 (+26.67%)
Mutual labels:  linter
eaf-linter
🤪 A linter, prettier, and test suite that does everything as-simple-as-possible.
Stars: ✭ 17 (+13.33%)
Mutual labels:  linter
branch-name-lint
Lint your branch names
Stars: ✭ 60 (+300%)
Mutual labels:  linter
raincoat
Raincoat has you covered when you can't stay DRY
Stars: ✭ 27 (+80%)
Mutual labels:  linter
TSLint.MSBuild
[Deprecated] An MSBuild task for running TSLint.
Stars: ✭ 13 (-13.33%)
Mutual labels:  linter

bemlinter Build Status

A cli tool to lint bem component isolation in CSS / SCSS files.

The main rules are:

  1. A CSS block file should only contain its own classes
  2. A CSS file, even if it is not a block, should not style a class of another block

Quick start

npm i bemlinter --save

You can set your package.json to use bemlinter:

{
  "scripts": {
    "lint": "bemlinter lint the/path/to/your/*.scss"
  }
}

Configuration file

You will soon need more configuration, so you should use a json configuration file:

{
  "scripts": {
    "lint": "bemlinter lint --config bemlinter.json"
  }
}

The configuration allow you to define:

  • sources: the paths of your source files.
  • excludePath (option): the paths of some exclude source files.
  • excludeBlock (option): the names of some block that are not isolated yet.
  • snapshot (option): the activation of quality tendency.
  • checkLowerCase (option): the deactivation of lower case check.
  • classPrefix (option): the class prefix.
  • filePattern (option): the file pattern.
  • modules (option): the configuration override for portions of your sources.

How to Contribute

  1. Star the project!
  2. Report a bug that you have found.
  3. Tweet or blog about bemlinter and let us know about it.
  4. Pull requests are also highly appreciated.

Author & Community

bemlinter is under MIT License.
It was created & is maintained by Thomas ZILLIOX for M6Web.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].