New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

stylint-json-reporter

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

stylint-json-reporter

JSON formatted reporter for Stylint

0.3.1
latest
Source
npm
Version published
Weekly downloads
2.1K
17.66%
Maintainers
1
Weekly downloads
 
Created
Source

stylint-json-reporter

JSON formatted reporter for Stylint

Install

To install for local project:

npm install stylint-json-reporter

Or to install as global package:

npm install -g stylint-json-reporter

Usage

CLI

You need to set reporter to stylint-json-reporter in the .stylintrc config file.

{
  "reporter": "stylint-json-reporter",
  
  "blocks": false,
  "brackets": "never",
  "colons": "always",
  "colors": "always",
  ...
}

Non CLI

You need to set reporter to stylint-json-reporter in config object.

const stylint = require('stylint')('path/to/stylus/', {
    reporter: "stylint-json-reporter",
    
    brackets: 'always',
    namingConvention: 'BEM',
    semicolons: 'always',
    ...
}, callbackFn).create();

Tests

Just run:

npm install
npm run test

Changelog

[0.3.1] - 2016-10-05

Fix column property name mismatch. PR #2.

[0.3.0] - 2016-04-10

Added support for column numbers.

[0.2.0] - 2016-03-21

Added tests and coverage

[0.1.0] - 2016-03-21

First public version of reporter and package.json

Keywords

lint

FAQs

Package last updated on 05 Oct 2016

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