{"name":"eslint-formatter-pretty","version":"4.1.0","description":"Pretty ESLint formatter","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/eslint-formatter-pretty.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["eslint","eslint-formatter","formatter","reporter","lint","validate"],"dependencies":{"@types/eslint":"^7.2.13","ansi-escapes":"^4.2.1","chalk":"^4.1.0","eslint-rule-docs":"^1.1.5","log-symbols":"^4.0.0","plur":"^4.0.0","string-width":"^4.2.0","supports-hyperlinks":"^2.0.0"},"devDependencies":{"ava":"^2.4.0","strip-ansi":"^6.0.0","tsd":"^0.17.0","typescript":"^4.3.2","xo":"^0.32.0"},"ava":{"serial":true},"gitHead":"f8a490d8438db61c9896a04efe7788fcfc5cdf1b","bugs":{"url":"https://github.com/sindresorhus/eslint-formatter-pretty/issues"},"homepage":"https://github.com/sindresorhus/eslint-formatter-pretty#readme","_id":"eslint-formatter-pretty@4.1.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"integrity":"sha512-IsUTtGxF1hrH6lMWiSl1WbGaiP01eT6kzywdY1U+zLc0MP+nwEnUiS9UI8IaOTUhTeQJLlCEWIbXINBH4YJbBQ==","shasum":"7a6877c14ffe2672066c853587d89603e97c7708","tarball":"http://registry-npm.ywwl.com/eslint-formatter-pretty/download/eslint-formatter-pretty-4.1.0.tgz","fileCount":5,"unpackedSize":8824,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgu76WCRA9TVsSAnZWagAA6lMP/29TBXRywD8/TsFJqgDx\nRiy6dyYvNC2zAtzppLQLb7oqhguv0P6bPlJ+cOMS/prBTkWQl6qBb3sJd0ru\n65WPDGYHropFD5tf27bBHcPWuRK7PTUTiEvF17bPcaNOInXq+shQgvznqVb8\nLoFEmYQyw2hGUnfDiJe1JS8ae6VwYJrGBytMYvuGJq9ziyxijKTWT6IvxQYH\n4Z3FUUnU92NOe4tzr064XgHMxvdcEGOCfVf14HDK6n8pfP+AKqr2D7Ph3yod\ncI/PjKv06U+ukz/XOQr/xvPSLEDBxLrqC/WP6V8K1viMxVpY3YYJS0GGOvAx\nISDjv891pe2c35Hq7uj+TYroNYp+5FUvC0QI50KDP0H0Dpuynchv1de/RfqM\nU405oWAaKBG4hnPq/Db9tRm84Ck0Tei9biwzuhL+M1DQOEfc9rlebpYAOHq6\n439reja0EjnPHPb9ZfIGdtW+gH1VjKPob9XjlHREDmTfLA+Y/GX9x6Kddjbk\ne401gv78MloSS4JKoifxArP+tLI5ZxonAJrcBIlNZVVrFOEFp8DbGVSk2znH\nGwFr9F+BN9rAEuKrGy+9KDTMQbK0Jmzi/24e27hW5Ce72I+iV6izU5+Mb0DK\nQRzAnkQSiwAvAW4qWrzws4GNPPSe9c0PHRelFBLbNVRUiPtmY7iEh9nkGVBB\nBcH+\r\n=oyhT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDhunhPfYjJP4HBLxbDtNQLQMqsid3T8bq85QbB9HaypAiBI2GgFbSjfbQUMzUyovTFbjh+2ej2hmdDZxYko4tTAUg=="}],"size":3708,"noattachment":false,"key":"/eslint-formatter-pretty/-/eslint-formatter-pretty-4.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-formatter-pretty_4.1.0_1622916758662_0.29701965767905625"},"_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":1622916758795,"_cnpm_publish_time":1622916758795,"dist-tags":{"latest":"7.1.0"}}