{"name":"eslint-formatter-pretty","version":"7.1.0","description":"Pretty formatter for ESLint","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"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["eslint","eslint-formatter","formatter","reporter","lint","validate"],"dependencies":{"@types/eslint":"^9.6.1","ansi-escapes":"^7.1.0","chalk":"^5.6.2","eslint-rule-docs":"^1.1.235","log-symbols":"^7.0.1","plur":"^5.1.0","string-width":"^8.1.0","supports-hyperlinks":"^4.3.0"},"devDependencies":{"ava":"^6.4.1","strip-ansi":"^7.1.2","tsd":"^0.33.0","typescript":"^5.9.2","xo":"^1.2.2"},"ava":{"serial":true},"xo":{"rules":{"import/no-extraneous-dependencies":"off"},"ignores":["example*.js"]},"gitHead":"49a7a86f1ec70f5aa18dda202485e6a32993091d","types":"./index.d.ts","_id":"eslint-formatter-pretty@7.1.0","bugs":{"url":"https://github.com/sindresorhus/eslint-formatter-pretty/issues"},"homepage":"https://github.com/sindresorhus/eslint-formatter-pretty#readme","_nodeVersion":"25.8.0","_npmVersion":"11.12.0","dist":{"integrity":"sha512-iyPrgpwKC3MMM75Wxn0VouD89HolpG+BL95NOxgwOWO0R+Omapo7gFX2xcGVsUDS7KiXLtDuynLbNbOARSE7YA==","shasum":"641ee88a5ba9c63d04b5b4415ebb2d14f737df57","tarball":"http://registry-npm.ywwl.com/eslint-formatter-pretty/download/eslint-formatter-pretty-7.1.0.tgz","fileCount":5,"unpackedSize":10300,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEQP17+DU+vUCtgNdVEOOtrXQRDSkj7kROtuMsK+ijfGAiBAkxCUmbz3CWfppbIpUabuNGSkM8tnygD6zl3DiCuvcg=="}],"size":4134,"noattachment":false,"key":"/eslint-formatter-pretty/-/eslint-formatter-pretty-7.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eslint-formatter-pretty_7.1.0_1776179553218_0.9976428747355892"},"_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- Click a filename header to open the file in your editor.\n\n## Install\n\n```sh\nnpm install --save-dev eslint-formatter-pretty\n```\n\n*Please 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.*\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 terminals with [hyperlink support](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda#supporting-apps), click the filename header to open the file in your editor, or click a rule ID to open its documentation.\n\nIn iTerm, <kbd>Command</kbd>-click the filename headers (like `index.js`) to open files at the specific line and column.\n","publish_time":1776179553352,"_cnpm_publish_time":1776179553352,"dist-tags":{"latest":"7.1.0"}}