stylint-stylish
Version:
A stylish reporter for Stylint, heavily inspired by jshint-stylish
71 lines (53 loc) • 1.73 kB
Markdown
> Stylish formatter for Stylint
[![NPM Version][npm-image]][npm-url]
[![Build Status][gh-actions-image]][gh-actions-url]
[![Coverage Status][coveralls-image]][coveralls-url]
![This reporter][new-image]
vs original:
![Original reporter][orig-image]
To use it, just set `reporter` to `stylint-stylish` in the config (`.stylintrc`) or when calling stylint programatically.
```json
{
"reporter": "stylint-stylish",
"noImportant": true,
"semicolons": {
"expect": "always",
"error": true
}
}
```
To use options, add a `reporterOptions`-object to the config
```json
{
"reporter": "stylint-stylish",
"reporterOptions": {
"absolutePath": true
},
"noImportant": true,
"semicolons": {
"expect": "always",
"error": true
}
}
```
Type: `boolean`, default: `false`
When printing out a violation, print the full line with the violation as well.
Type: `boolean`, default: `false`
When printing out a filename, print the absolute path instead of a relative one
Type: `boolean`, default: `false`
When printing out a violation, Include the name of the rule at the end
[]: https://github.com/SimenB/stylint-stylish/actions
[]: https://github.com/SimenB/stylint-stylish/actions/workflows/nodejs.yml/badge.svg?branch=master
[]: https://coveralls.io/github/SimenB/stylint-stylish
[]: https://img.shields.io/coveralls/SimenB/stylint-stylish.svg
[]: https://npmjs.org/package/stylint-stylish
[]: https://img.shields.io/npm/v/stylint-stylish.svg
[]: screenshots/this.png
[]: screenshots/original.png