Socket
Book a DemoInstallSign in
Socket

stylelint-formatter-compact

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-formatter-compact

A compact formatter for stylelint

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
21
31.25%
Maintainers
1
Weekly downloads
 
Created
Source

stylelint-formatter-compact

A stylelint compact formatter inspired by ESLint compactformatter.

Build Status NPM version

Installation

npm install stylelint-formatter-compact --save-dev

Usage

stylelint CLI

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

grunt-stylelint

const formatter = require('stylelint-formatter-compact');

grunt.initConfig({
  stylelint: {
    options: {
      formatter: formatter
    },
    all: ['css/**/*.css']
  }
});

grunt.loadNpmTasks('grunt-stylelint');
grunt.registerTask('default', ['stylelint']);

gulp-stylelint

const gulp = require('gulp');
const stylelint = require('gulp-stylelint');
const formatter = require('stylelint-formatter-compact');

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

Changelog

License

Keywords

styelint

FAQs

Package last updated on 18 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts