Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zeitport/eslint-formatter-filelink-stylish

A stylish formatter that enables autolink for files
https://github.com/zeitport/eslint-formatter-filelink-stylish

Last synced: 20 days ago
JSON representation

A stylish formatter that enables autolink for files

Awesome Lists containing this project

README

        

# eslint-formatter-filelink-stylish

This ESLint formatter is a modifications of the stylish formatter to support autolinkable filepaths.

![Example output](./doc/example-output.png)

## Getting started

Install formatter

```cli
npm install eslint-formatter-filelink-stylish --save-dev
```

Use it with eslint CLI

```cli
eslint -f filelink-stylish .
```

or via nodejs

```JavaScript
'use strict';

const CLIEngine = require('eslint').CLIEngine;
const formatter = require('eslint-formatter-filelink-stylish');

const cli = new CLIEngine({
useEslintrc: true,
cwd:__dirname
});
const report = cli.executeOnFiles(['example.js']);

console.log(formatter(report.results));
```