eslint-formatter-json-relative

0.1.0 • Public • Published

eslint-formatter-json-relative

ESlint formatter which returns the ESlint result as JSON, but all absolute paths are replaced with relative paths based on the current working directory (the directory the ESlint command is executed from).

Installation

Use npm i eslint-formatter-json-relative --save-dev

Usage

Run ESlint with this formatter:

eslint -f json-relative ./path/to/src/

Write the result of the formatter into a file:

eslint -f json-relative -o out.json ./path/to/src/

Package Sidebar

Install

npm i eslint-formatter-json-relative

Weekly Downloads

6,205

Version

0.1.0

License

MIT

Unpacked Size

1.76 kB

Total Files

3

Last publish

Collaborators

  • philsch