This package has been deprecated

Author message:

WARNING: This project has been renamed to posthtml-bem-linter. Install using posthtml-bem-linter instead.

pineglade-bemlinter

0.1.2 • Public • Published

pineglade-bemlinter npm version

Pure function and posthtml plugin for linting a bem html. Fork of gulp-html-bemlinter.

Additions:

  • Support modifier option (default value is --).
  • No flood on success.

Usage

First, install pineglade-bemlinter as a development dependency:

npm i --DE pineglade-bemlinter

Then, add it to your posthtml.config.js:

const { getPosthtmlBemLinter } = require('pineglade-bemlinter');

module.exports = {
  plugins: [
    getPosthtmlBemLinter({
      getSourceName: (filename) => filename,
      log: console,
      modifier: '--'
    })
  ]
};

(There are default values of optional params getSourceName, log and modifier in this example.)

Or use function lintBem in pure Node:

const { lintBem } = require('pineglade-bemlinter');

// ...

lintBem({
  name,
  content,
  log: console,
  modifier: '--'
});

(There are default values of optional params log and modifier in this example.)

Versions

Current Tags

VersionDownloads (Last 7 Days)Published

Version History

VersionDownloads (Last 7 Days)Published
0.1.10
0.1.00
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i pineglade-bemlinter

Weekly Downloads

1

Version

0.1.2

License

ISC

Unpacked Size

8.44 kB

Total Files

7

Last publish

Collaborators

  • efiand