{"name":"eslint-formatter-pretty","version":"2.1.1","description":"Pretty ESLint formatter","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/eslint-formatter-pretty.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"keywords":["eslint","eslint-formatter","formatter","reporter","lint","validate"],"dependencies":{"ansi-escapes":"^3.1.0","chalk":"^2.1.0","eslint-rule-docs":"^1.1.5","log-symbols":"^2.0.0","plur":"^3.0.1","string-width":"^2.0.0","supports-hyperlinks":"^1.0.1"},"devDependencies":{"ava":"^0.25.0","strip-ansi":"^5.0.0","xo":"^0.23.0"},"ava":{"serial":true},"gitHead":"c15d2ca6fb5fe729150838beb78f35f2ecc60b2f","bugs":{"url":"https://github.com/sindresorhus/eslint-formatter-pretty/issues"},"homepage":"https://github.com/sindresorhus/eslint-formatter-pretty#readme","_id":"eslint-formatter-pretty@2.1.1","_nodeVersion":"8.15.0","_npmVersion":"6.6.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-gWfagucSWBn82WxzwFloBTLAcwYDgnpAfiV5pQfyAV5YpZikuLflRU8nc3Ts9wnNvLhwk4blzb42/C495Yw7BA==","shasum":"0794a1009195d14e448053fe99667413b7d02e44","tarball":"http://registry-npm.ywwl.com/eslint-formatter-pretty/download/eslint-formatter-pretty-2.1.1.tgz","fileCount":4,"unpackedSize":7917,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcRXqJCRA9TVsSAnZWagAAWg4QAKHS4S+BQmSpI3SJOaDq\nMdMc0vWprgZi9A/NHxy3gVZcwwljlIRiD3NV+OeNWYlg1DUf8IaG4xuIzsXU\nZt0heT78+9pxYzeHIEYkWZZ82pp3ekImt4sglZajEucDa3c1NpJdI2RPDHyd\nKqWOl2DQj2laLXN5ptV42LWPIHJz/yTqaUzgYGyG/7kRCoBEyyGYxHS9SoaO\nyEBc6IvuWy5CGZLvsvtfBK17WONouwBDqG6QGlY5LU251pC6Kwx/SZtfH1dc\nlzSVF5EuC1BmY6SIQephs+IOmtJZuDD0vObmTircWKyG86IL+PECMQ2YaezR\ndFLRIZwjFoTsyI7vBDP51FL7glNlKCGwNGDau96AOY9ec+pNPBomvuFBU815\nt4ERKf/5+OY9t9Fy4eXO0ofGK20z/aN90duOWtIKs/K9qRgRuBqAcUcYLJBq\nyBuYDs2aWI/r0fOvJ0RAdg5pEel1BiLP/EvgeihmgR3y8KLtf1IVMbwV4lQM\nkUxj459N3xS9X9dNb82OZhgdrbw/pg1G5yPf1eiiOaNPj1BqDq0CDRRmXSDw\n2oJuM9g3PSJcbx/DY4SsoAPAV+82Z+EisipscogmvICl13+ChxbndAZ0ovnA\nX+QLlcyoSCjjKv/8O6qgJnKixoyv57hD0cpIPT8j4CJn3Z6aXIlVJbEcR05/\ntERV\r\n=tqQ3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlxeCAFUe5jnWjhEPKLrV55oXRtpr/6cGgq56TYlEAQgIgdE/TA1JrYMx2DH0HQHL9v5cyfkKAFmc4fuRCFHtMiU8="}],"size":3368,"noattachment":false,"key":"/eslint-formatter-pretty/-/eslint-formatter-pretty-2.1.1.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-formatter-pretty_2.1.1_1548057224413_0.6907313972893441"},"_hasShrinkwrap":false,"readme":"# eslint-formatter-pretty\n\n> Pretty formatter for [ESLint](https://eslint.org)\n\n![](screenshot.png)\n\n## Highlights\n\n- Pretty output.\n- Sorts results by severity.\n- Stylizes inline codeblocks in messages.\n- Command-click a rule ID to open its docs.\n- Command-click a header to reveal the first error in your editor. *(iTerm-only)*\n\n## Install\n\n```sh\nnpm install --save-dev eslint-formatter-pretty@5\n```\n\n*To use this with ESLint, use version 5. Version 6 is [not compatible with ESLint](https://github.com/eslint/eslint/issues/15560).*\n\n## Usage\n\n### [XO](https://github.com/xojs/xo)\n\nNothing to do. It's the default formatter.\n\n### ESLint CLI\n\n```sh\neslint --format=pretty file.js\n```\n\n### [grunt-eslint](https://github.com/sindresorhus/grunt-eslint)\n\n```js\ngrunt.initConfig({\n\teslint: {\n\t\ttarget: ['file.js'].\n\t\toptions: {\n\t\t\tformat: 'pretty'\n\t\t}\n\t}\n});\n\ngrunt.loadNpmTasks('grunt-eslint');\ngrunt.registerTask('default', ['eslint']);\n```\n\n### [gulp-eslint](https://github.com/adametry/gulp-eslint)\n\n```js\nimport gulp from 'gulp';\nimport eslint from 'gulp-eslint';\n\nexport const lint = (\n\tgulp.src('file.js')\n\t\t.pipe(eslint())\n\t\t.pipe(eslint.format('pretty'))\n);\n```\n\n### [eslint-loader](https://github.com/MoOx/eslint-loader) *(webpack)*\n\n```js\nimport eslintFormatterPretty from 'eslint-formatter-pretty';\n\nexport default {\n\tentry: ['file.js'],\n\tmodule: {\n\t\trules: [\n\t\t\t{\n\t\t\t\ttest: /\\.js$/,\n\t\t\t\texclude: /node_modules/,\n\t\t\t\tloader: 'eslint-loader',\n\t\t\t\toptions: {\n\t\t\t\t\tformatter: eslintFormatterPretty\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t}\n};\n```\n\n## Tips\n\nIn iTerm, <kbd>Command</kbd>-click the filename header to open the file in your editor.\n\nIn [terminals with support for hyperlinks](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda#supporting-apps), <kbd>Command</kbd>-click the rule ID to open its docs.\n","publish_time":1548057224520,"_cnpm_publish_time":1548057224520,"dist-tags":{"latest":"7.1.0"}}