{"id":24568736,"url":"https://github.com/lwhiteley/eslint-output","last_synced_at":"2025-04-22T17:21:44.752Z","repository":{"id":23370179,"uuid":"98803364","full_name":"lwhiteley/eslint-output","owner":"lwhiteley","description":"export multiple formats of eslint","archived":false,"fork":false,"pushed_at":"2023-01-08T01:32:11.000Z","size":519,"stargazers_count":8,"open_issues_count":6,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-23T13:06:21.542Z","etag":null,"topics":["eslint","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lwhiteley.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-30T14:36:01.000Z","updated_at":"2024-04-30T03:52:06.000Z","dependencies_parsed_at":"2023-01-13T23:12:05.801Z","dependency_job_id":null,"html_url":"https://github.com/lwhiteley/eslint-output","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwhiteley%2Feslint-output","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwhiteley%2Feslint-output/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwhiteley%2Feslint-output/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwhiteley%2Feslint-output/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lwhiteley","download_url":"https://codeload.github.com/lwhiteley/eslint-output/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250285749,"owners_count":21405299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eslint","hacktoberfest"],"created_at":"2025-01-23T14:55:15.149Z","updated_at":"2025-04-22T17:21:44.718Z","avatar_url":"https://github.com/lwhiteley.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-output\n\n[![npm version](https://badge.fury.io/js/eslint-output.svg)](https://badge.fury.io/js/eslint-output)\n\n### Getting started\n\nInstall `eslint-output` using `npm` or your favorite node modules manager.\n\n```shell\nnpm i --save-dev eslint-output\n```\n\n#### Getting started: Next Steps\n\n- Configure eslint using Flat Config\n- Create a script in your package json eg. `\"eslint-output\": \"eslint-output\"`\n- Configure eslint-output with `eslintoutput.config.js` placed at the root of your project's directory. See example below\n- Run `npm run eslint-output` or `yarn run eslint-output`. See below for command line options.\n\n**Example `eslintoutput.config.js`**\n\n```js\nmodule.exports = {\n  files: ['.'],\n  formats: [\n    {\n      name: 'stylish',\n      output: 'console',\n    },\n    {\n      name: 'junit',\n      output: 'file',\n      path: 'tmp/junit.xml',\n      id: 'myJunit',\n    },\n  ],\n};\n```\n\n##### Command line options\n\n| Option                     | Value       | Description                                                                                                                          |\n| -------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------ |\n| `--quiet`, `-q`            |             | Don't report warnings, only errors                                                                                                   |\n| `--max-warnings`, `-m`     | `Int`       | Maximum number of warnings before the process returns an unsuccessful error code                                                     |\n| `--format-overrides`, `-o` | `String`(s) | Override key(s) in specific format array item(s), using format `id.key=value`.\u003cbr /\u003e`id` field must be added to desired format item. |\n\nFiles to be checked can also be passed in the command, e.g.\n\n```shell\nnpm run eslint-output src/**/*.js test/**/*.js\n```\n\nThis will override the `files` array in `eslintoutput.config.js`.\n\nMultiple format overrides can be passed in one command, e.g.\n\n```shell\nnpm run eslint-output -o gitlab.path=\"path/to/file.json\" myJunit.output=console -- src/**/*.js\n```\n\nor even\n\n```shell\nnpm run eslint-output -o gitlab.path=\"path/to/file.json\" -q  -o myJunit.output=console -- src/**/*.js\n```\n\n#### Notes:\n\n- File paths are relative to the current working directory.\n- Please be mindful that a lot of formatters have been removed from the core eslint\n  - these removed formatters must be installed separately. eg. `eslint-formatter-junit`\n- Pull requests are welcome!\n\n### Breaking changes\n\n- config file is now `eslintoutput.config.js`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwhiteley%2Feslint-output","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flwhiteley%2Feslint-output","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwhiteley%2Feslint-output/lists"}