{"id":24598473,"url":"https://github.com/origin-1/eslint-p","last_synced_at":"2025-04-30T15:48:35.167Z","repository":{"id":210852699,"uuid":"726111332","full_name":"origin-1/eslint-p","owner":"origin-1","description":"A drop-in replacement for ESLint 9 featuring multithreaded parallel linting.","archived":false,"fork":false,"pushed_at":"2025-04-22T14:23:39.000Z","size":389,"stargazers_count":28,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T15:48:22.938Z","etag":null,"topics":["concurrency","eslint","multithreading","parallel"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/origin-1.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-12-01T14:59:12.000Z","updated_at":"2025-04-24T13:32:27.000Z","dependencies_parsed_at":"2024-01-01T12:30:19.690Z","dependency_job_id":"f73b6af3-9f9f-41a1-9d71-48c1b214acec","html_url":"https://github.com/origin-1/eslint-p","commit_stats":null,"previous_names":["origin-1/eslint-p"],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/origin-1%2Feslint-p","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/origin-1%2Feslint-p/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/origin-1%2Feslint-p/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/origin-1%2Feslint-p/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/origin-1","download_url":"https://codeload.github.com/origin-1/eslint-p/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251734361,"owners_count":21635123,"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":["concurrency","eslint","multithreading","parallel"],"created_at":"2025-01-24T12:16:36.754Z","updated_at":"2025-04-30T15:48:35.160Z","avatar_url":"https://github.com/origin-1.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-p · [![npm version][npm badge]][npm URL]\n\nA drop-in replacement for ESLint 9 featuring multithreaded parallel linting.\n\n\u003e **IMPORTANT:** Legacy `.eslintrc` configuration is not supported.\n\n## Installation\n\n```shell\nnpm i --save-dev eslint-p\n```\n\n```shell\nyarn add --dev eslint-p\n```\n\n```shell\npnpm add --save-dev eslint-p\n```\n\n## Usage\n\nAll [ESLint CLI options](https://eslint.org/docs/latest/use/command-line-interface#options) are supported, plus `--concurrency` to specify the number of linting threads explicitly.\n\nExample:\n\n```shell\nnpx eslint-p --fix --concurrency=4\n```\n\nValid values for the `--concurrency` option are:\n\n* **positive integers (e.g. `4`)**:\n  Maximum number of linting threads. The effective number of threads can be lower when linting only a few files.\n* **`auto`**:\n  Choose number of linting threads automatically (default).\n* **`off`**:\n  No multithreading, run like ESLint. This is not the same as `--concurrency=1`.\n\n\u003e **NOTE**: Normally, a performance improvement **will be only noticeable on systems with 4 or more CPUs**.\n\u003e Some plugins like `typescript-eslint` with type-aware linting can increase the time required to initialize a linting thread resulting in performance degradation when multithreading is used.\n\n## Mixed Usage with ESLint\n\nThis package has ESLint set as a dependency, so if you already have `eslint` installed, but with a different version than the one specified in the `package.json` of this package you might get inconsistent results between the CLI and the editor.\n\nTo check the version of ESLint used by this package you can use:\n\n```shell\nnpx eslint-p -v\n```\n\nTo avoid inconsistencies, install the same `eslint` version used by this package or remove the `eslint` dependency from your `package.json`.\nYou can find more information on [this pull request](https://github.com/origin-1/eslint-p/pull/1).\n\n## Concurrency Debugging\n\nWhen the `--debug` option is passed and the command runs in multithread mode, the debug output will include a line indicating the number of worker threads in use. For example:\n\n```shell\nnpx eslint-p --debug\n```\n\nwill print a line similar to:\n\n```text\neslint:eslint Running 4 worker thread(s). +0ms\n```\n\nThis line should be printed in the first seconds of execution, before any files are processed, but it can be easily overlooked.\nTo make the debug output less verbose in a Unix shell you can run instead:\n\n```shell\nDEBUG='eslint:eslint' npx eslint-p\n```\n\nOr in Windows PowerShell:\n\n```shell\n$env:DEBUG='eslint:eslint' ; npx eslint-p\n```\n\nIf you don't see a lint containing `worker thread(s)` in the debug output, then the command is running in single-threaded mode, i.e. like ESLint itself.\n\n## Multithread Linting in ESLint\n\nESLint is considering the possibility of integrating multithread linting as a built-in feature.\nYou can follow [the related proposal](https://github.com/eslint/rfcs/pull/129) for more information.\n\n[npm badge]: https://img.shields.io/npm/v/eslint-p?logo=npm\n[npm URL]: https://www.npmjs.com/package/eslint-p\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forigin-1%2Feslint-p","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forigin-1%2Feslint-p","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forigin-1%2Feslint-p/lists"}