JSON formatted reporter for Stylint
To install for local project:
npm install stylint-json-reporter
Or to install as global package:
npm install -g stylint-json-reporter
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",
...
}
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();
Just run:
npm install
npm run test
Fix column property name mismatch. PR #2.
Added support for column numbers.
Added tests and coverage
First public version of reporter and package.json