JSPM

stylelint-formatter-table

1.0.4
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 99
    • Score
      100M100P100Q113229F
    • License MIT

    stylelint-formatter-table

    Package Exports

    • stylelint-formatter-table

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stylelint-formatter-table) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    stylelint-formatter-table

    A table formatter for Stylelint

    image

    Install

    Using yarn:

    $ yarn add stylelint-formatter-table --dev

    Using npm:

    $ npm i stylelint-formatter-table -D

    Usage

    Stylelint CLI

    $ stylelint file.css --custom-formatter=node_modules/stylelint-formatter-table

    Webpack

    const styleLintPlugin = require('stylelint-webpack-plugin');
    const stylelintFormatter = require('stylelint-formatter-table');
    
    module.exports = {
      // ...
      plugins: [
        new styleLintPlugin({
          formatter: stylelintFormatter
        }),
      ],
      // ...
    }

    gulp-stylelint

    const gulp = require('gulp');
    const stylelint = require('gulp-stylelint');
    const stylelintFormatter = require('stylelint-formatter-table');
    
    gulp.task('lint', () =>
      gulp.src('file.css')
        .pipe(stylelint({
          reporters: [ {
            formatter: stylelintFormatter,
            console: true
          } ]
        }));
    );

    grunt-stylelint

    const stylelintFormatter = require('stylelint-formatter-table');
    
    grunt.initConfig({
      stylelint: {
        options: {
          formatter: stylelintFormatter
        },
        all: ['css/**/*.css']
      }
    });
    
    grunt.loadNpmTasks('grunt-stylelint');
    grunt.registerTask('default', ['stylelint']);