ESLint formatter with source-map support and absolute paths with row/column on one line.
npm install eslint-path-formatter//@ sourceMappingURL is found the reported error position is mapped to the original source file. This works great with output from compilers like TypeScript or build tools like grunt-concat-sourcemap.
$FILE_PATH$[ \t][:;,\[\(\{<]$LINE$(?:[:;,\.]$COLUMN$)?.
``
Usage
Install from NPM
``
$ npm install eslint-path-formatter
``
Then pass the path to the module as the formatter option (see the ESLint docs). It is a bit odd but this is how ESLint finds the module.
$3
``js
grunt.initConfig({
//..
eslint: {
options: {
formatter: './node_modules/eslint-path-formatter'
}),
source: {
//..
}
}
});
``
Options
$3
For low-tech displays and pure text.
``js
require('eslint-path-formatter').color(false);
``
Example output
> Looks very similar to jshint-path-reporter:
>
> WebStorm (with link filter and darcula theme):
> !webstorm darcula
History
* 0.1.0 - Cloned from jshint-path-reporter
Build
Install development dependencies in your git checkout:
``
$ npm install
``
You need the global grunt command:
``
$ npm install grunt-cli -g
``
Build and run tests:
``
$ grunt
``
See the Gruntfile` for additional commands.