package
Pretty formatter for ESLint
npm install eslint-formatter-prettyGitHub-flavored package documentation.
Across all versions, last 30 days.
3,321,954 in 30 days
Runtime metadata.
Tagged topics.
Pretty formatter for ESLint

npm install --save-dev eslint-formatter-prettyPlease note that to use version 6 of this package you will HAVE to use ESLint v9+. If you're using ESLint v8 or below, install with npm install --save-dev eslint-formatter-pretty@5 instead.
Nothing to do. It's the default formatter.
eslint --format=pretty file.jsgrunt.initConfig({
eslint: {
target: ['file.js'],
options: {
format: 'pretty'
}
}
});
grunt.loadNpmTasks('grunt-eslint');
grunt.registerTask('default', ['eslint']);import gulp from 'gulp';
import eslint from 'gulp-eslint';
export const lint = (
gulp.src('file.js')
.pipe(eslint())
.pipe(eslint.format('pretty'))
);import eslintFormatterPretty from 'eslint-formatter-pretty';
export default {
entry: ['file.js'],
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'eslint-loader',
options: {
formatter: eslintFormatterPretty
}
}
]
}
};In terminals with hyperlink support, click the filename header to open the file in your editor, or click a rule ID to open its documentation.
In iTerm, Command-click the filename headers (like index.js) to open files at the specific line and column.
Estimated unpacked size across 20 packages.
646.3 kB
Includes dependencies.
^5.6.2
6.0.1
^7.0.1
7.0.1
^7.1.0
7.3.0
^8.1.0
9.0.0