{"name":"eslint-formatter-pretty","version":"7.0.0","keywords":["eslint","eslint-formatter","formatter","reporter","lint","validate"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"eslint-formatter-pretty@7.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/eslint-formatter-pretty#readme","bugs":{"url":"https://github.com/sindresorhus/eslint-formatter-pretty/issues"},"xo":{"rules":{"import/no-extraneous-dependencies":"off"},"ignores":["example*.js"]},"ava":{"serial":true},"dist":{"shasum":"31f50755cb5a1c19a55e4aefd6856c676b090852","tarball":"http://registry-npm.ywwl.com/eslint-formatter-pretty/download/eslint-formatter-pretty-7.0.0.tgz","fileCount":5,"integrity":"sha512-1CaE7Pnce8Csy+tlTEbFC2q5qgT5cJo2a0UkEOds+Y5+mI1nX3DApIhcBP8EPwV8TgTpLlzOfw8mcBJBAs3Y9Q==","signatures":[{"sig":"MEQCIB4emZAZJKUoHVtLr3WLFz7yw7rxpKG97QoA450Un761AiB+xtxltSBrmqZAq8JkmYkgcqx3bCl3dCufHtY2jvizQw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10595,"size":4202,"noattachment":false,"key":"/eslint-formatter-pretty/-/eslint-formatter-pretty-7.0.0.tgz"},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"a4d027bb7096c3dce5aff55e405477ac29f52327","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/eslint-formatter-pretty.git","type":"git"},"_npmVersion":"10.9.2","description":"Pretty formatter for ESLint","directories":{},"sideEffects":false,"_nodeVersion":"24.8.0","dependencies":{"plur":"^5.1.0","chalk":"^5.6.2","log-symbols":"^7.0.1","ansi-escapes":"^7.1.0","string-width":"^8.1.0","@types/eslint":"^9.6.1","eslint-rule-docs":"^1.1.235","supports-hyperlinks":"^4.3.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^1.2.2","ava":"^6.4.1","tsd":"^0.33.0","strip-ansi":"^7.1.2","typescript":"^5.9.2"},"_npmOperationalInternal":{"tmp":"tmp/eslint-formatter-pretty_7.0.0_1758638330921_0.3879274913576558","host":"s3://npm-registry-packages-npm-production"},"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":1758638331109,"_cnpm_publish_time":1758638331109,"dist-tags":{"latest":"7.1.0"}}