Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zeitport/eslint-formatter-filelink-stylish
- Owner: zeitport
- License: mit
- Created: 2019-10-07T18:17:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-06T23:19:40.000Z (over 1 year ago)
- Last Synced: 2024-12-10T19:36:02.046Z (28 days ago)
- Language: JavaScript
- Size: 110 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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));
```