神刀安全网

Pretty ESLint output

eslint-formatter-pretty Pretty ESLint output

Pretty formatter for ESLint

Pretty ESLint output

Install

$ npm install --save-dev eslint-formatter-pretty 

Usage

ESLint CLI

$ eslint --format=node_modules/eslint-formatter-pretty file.js 

grunt-eslint

grunt.initConfig({     eslint: {         options: {             format: 'node_modules/eslint-formatter-pretty'         },         target: ['file.js']     } });  grunt.loadNpmTasks('grunt-eslint'); grunt.registerTask('default', ['eslint']);

Tip

In iTerm, Cmd +click the filename header to open the file in your editor.

License

MIT © Sindre Sorhus

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Pretty ESLint output

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址