{"_id":"@cjser/eslint-formatter-pretty","name":"@cjser/eslint-formatter-pretty","dist-tags":{"latest":"7.1.0-cjser.2"},"versions":{"7.1.0-cjser.2":{"name":"@cjser/eslint-formatter-pretty","version":"7.1.0-cjser.2","description":"Pretty formatter for ESLint","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.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","require":"./dist-cjser/index.cjs","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","eslint-rule-docs":"^1.1.235","@cjser/ansi-escapes":"7.3.0-cjser.2","@cjser/chalk":"5.6.2-cjser.2","@cjser/log-symbols":"7.0.1-cjser.2","@cjser/plur__v5_1_0":"5.1.0-cjser.2","@cjser/string-width":"8.2.1-cjser.2","@cjser/supports-hyperlinks":"4.4.0-cjser.2"},"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"]},"types":"./index.d.ts","main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"7.1.0","cjserVersion":2,"original":{"name":"eslint-formatter-pretty","version":"7.1.0","exports":{"types":"./index.d.ts","default":"./index.js"},"repository":"sindresorhus/eslint-formatter-pretty","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"},"files":["index.js","index.d.ts"],"scripts":{"test":"xo && ava && tsd"}}},"_id":"@cjser/eslint-formatter-pretty@7.1.0-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-vr8gARqCq9AjUyYRQmC2jaVCVtKJHQNWCNvhumkrMoD+wAQb56esfLwI1Om4uQejwpiUCI2BXUyOoMcUqP/JBw==","shasum":"f93bd7a30dc1d52c2da466c0b6078a9599190e80","tarball":"https://registry.npmjs.org/@cjser/eslint-formatter-pretty/-/eslint-formatter-pretty-7.1.0-cjser.2.tgz","fileCount":6,"unpackedSize":19454,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDHPzXbvvGviXVa3rJlAKcK3KeHskw0xWSnZGl0l44yvQIgGnsntJdSAOIPCd6ZP9CIxItVPQ3cT1ZpIhDWcCjtBZ8="}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eslint-formatter-pretty_7.1.0-cjser.2_1778157997064_0.38932748733101286"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T12:46:36.974Z","7.1.0-cjser.2":"2026-05-07T12:46:37.270Z","modified":"2026-05-07T12:46:37.460Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Pretty formatter for ESLint","keywords":["eslint","eslint-formatter","formatter","reporter","lint","validate"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","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\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/eslint-formatter-pretty\n","readmeFilename":"readme.md","_rev":"1-c3011464b2b34173119b17ac0204ed41"}