stylelint-codeframe-formatter

1.2.0 • Public • Published

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 path/to/stylelint-codeframe-formatter file.css

stylelint-webpack-plugin

webpack.config.js

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

grunt-stylelint

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

Dependencies (4)

Dev Dependencies (9)

Package Sidebar

Install

npm i stylelint-codeframe-formatter

Weekly Downloads

4,046

Version

1.2.0

License

MIT

Unpacked Size

6.53 kB

Total Files

3

Last publish

Collaborators

  • bencergazda