elektronik2k5 / stylelint-codeframe-formatter

Stylelint formatter using babel code frame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stylelint-codeframe-formatter

npm version dependencies Status devDependencies Status

Stylelint formatter using babel-code-frame to show the piece of code where the errors and warnings are.

Install

$ npm install stylelint-codeframe-formatter --save-dev

Usage

Stylelint CLI

$ stylelint --custom-formatter stylelint-codeframe-formatter file.css

webpack.config.js

module.exports = {
    plugins: [
        new StylelintPlugin({
            formatter: require('stylelint-codeframe-formatter'),
            ...
        })
    ],
    ...
};

Gruntfile.js

module.exports = function(grunt) {
    grunt.initConfig({
        stylelint: {
            scss: {
                options: {
                    formatter: require('stylelint-codeframe-formatter')
                },
                ...
            }
        },
        ...
    });
};

License

MIT © Benedek Káldi
Heavily based on Adrien Antoine's eslint-codeframe-formatter

About

Stylelint formatter using babel code frame


Languages

Language:JavaScript 99.8%Language:CSS 0.2%