Forum

Methodology

Toolbox

Platform

Community

bemhint-deps-schema

Plugin for bemhint checks *.deps.js to be written by specification.

How to install

$ npm install bemhint-deps-schema

How to use

Add plugin to .bemhint.js:

module.exports = {
    plugins: {
        'bemhint-deps-schema': true
    }
};

Custom schema

To validate custom deps.js format (code style reasons or others) configure plugin with custom json-schema (path is relative to config location):

module.exports = {
    plugins: {
        'bemhint-deps-schema': {
            schema: './dir/deps.schema.json'
        }
    }
};

We suggest to base your custom schema on standard plugin's schema.

If you notice a mistake or want something to supplement the article, you can always write to us at GitHub, or correct an article using prose.io.