stylelint-codeframe-formatter
Stylelint formatter using babel code frame
Last updated 3 years ago by bencergazda .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install stylelint-codeframe-formatter 
SYNC missed versions from official npm registry.

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 node_modules/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

Current Tags

  • 1.0.4                                ...           latest (3 years ago)

5 Versions

  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago

Copyright 2014 - 2017 © taobao.org |