eslint-formatter-beauty

    3.0.0 • Public • Published

    eslint-formatter-beauty

    Beautiful ESLint formatter.

    build npm

    Installation

    Using Yarn:

    yarn add --dev eslint-formatter-beauty
    

    Using npm:

    npm install --save-dev eslint-formatter-beauty
    

    Usage

    ESLint CLI:

    eslint -f=beauty path/to/your/file.js
    

    gulp-eslint

    const gulp = require('gulp')
    const eslint = require('gulp-eslint')
     
    gulp.task('lint', () =>
      gulp.src('file.js')
        .pipe(eslint())
        .pipe(eslint.format(require('eslint-formatter-beauty')))
    )

    eslint-loader

    module.exports = {
      // ... other options
      module: {
        rules: [
          // ... other options
          {
            test: /\.js$/,
            exclude: /node_modules/,
            loader: 'eslint-loader',
            options: {
              formatter: require('eslint-formatter-beauty')
            }
          }
        ]
      }
    }

    Related Projects

    License

    MIT License

    Copyright (c) 2018-present Pig Fang

    Install

    npm i eslint-formatter-beauty

    DownloadsWeekly Downloads

    80

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    7.17 kB

    Total Files

    5

    Last publish

    Collaborators

    • gplane