Modified version of the stylish reporter for ESLint which logs files without warning/errors.
$ npm install --save-dev eslint-formatter-stylish-verbose
$ eslint --format=stylish-verbose file.js
grunt.initConfig({
eslint: {
target: ['file.js'].
options: {
format: 'stylish-verbose'
}
}
});
grunt.loadNpmTasks('grunt-eslint');
grunt.registerTask('default', ['eslint']);
const gulp = require('gulp');
const eslint = require('gulp-eslint');
gulp.task('lint', () =>
gulp.src('file.js')
.pipe(eslint())
.pipe(eslint.format('stylish-verbose'))
);
eslint-loader (webpack)
module.exports = {
entry: ['file.js'],
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'eslint-loader',
options: {
formatter: require('eslint-formatter-stylish-verbose')
}
}
]
}
};
MIT © Jacques Dafflon
Credits for the original implementation of the stylish reporter go to Sindre Sorhus, @sindresorhus.
This README is adapted from the original README of---the now deprecated version of---the stylish reporter.