0.0.1 • Published 10 years ago
eslint-format-with-full-path v0.0.1
ESLint format with full path 
This module restores the eslint output to use the full path if stripped, e.g. by gulp-eslint.
Install
npm install --save eslint-format-with-full-path
Prerequisites
npm - installed eslint.
This package requires eslint but does not install it's own to avoid different installed versions.
Usage
gulp
var modifiedFormatter = require('eslint-format-with-full-path')('stylish');
gulp.task('eslint', function(){
return gulp.src(['app'])
.pipe(eslint())
.pipe(eslint.format(modifiedFormatter))
.pipe(eslint.failAfterError());
}
gulp - with a custom formatter
var modifiedFormatter = require('eslint-format-with-full-path')(myCustomFormatter);
gulp.task('eslint', function(){
return gulp.src(['app'])
.pipe(eslint())
.pipe(eslint.format(modifiedFormatter))
.pipe(eslint.failAfterError());
}
eslint CLI
Custom formatter myFormatter.js
:
var withFullPath = require('eslint-format-with-full-path')
module.exports = withFullPath('stylish')
Run eslint
with it:
eslint --format ./myFormatter.js
License
Licensed under the MIT license
0.0.1
10 years ago