{"id":13701465,"url":"https://github.com/pinterest/esprint","last_synced_at":"2025-05-14T17:02:42.192Z","repository":{"id":14101784,"uuid":"75985935","full_name":"pinterest/esprint","owner":"pinterest","description":"Fast eslint runner","archived":false,"fork":false,"pushed_at":"2024-09-06T04:16:42.000Z","size":1143,"stargazers_count":661,"open_issues_count":19,"forks_count":54,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-10T04:53:26.648Z","etag":null,"topics":["eslint","javascript","linter"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pinterest.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2016-12-09T00:13:57.000Z","updated_at":"2025-03-07T18:53:47.000Z","dependencies_parsed_at":"2023-01-14T05:30:15.357Z","dependency_job_id":"955cda6b-6362-4c1f-afdd-5af2f33397b7","html_url":"https://github.com/pinterest/esprint","commit_stats":{"total_commits":135,"total_committers":18,"mean_commits":7.5,"dds":0.7777777777777778,"last_synced_commit":"cd00fd41c79a5adfc57bdb38579c46a34622daa1"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinterest%2Fesprint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinterest%2Fesprint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinterest%2Fesprint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinterest%2Fesprint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pinterest","download_url":"https://codeload.github.com/pinterest/esprint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254190368,"owners_count":22029631,"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","javascript","linter"],"created_at":"2024-08-02T20:01:40.058Z","updated_at":"2025-05-14T17:02:42.129Z","avatar_url":"https://github.com/pinterest.png","language":"JavaScript","readme":"# esprint - a fast eslint runner [![GitHub Workflow Status](\u003chttps://img.shields.io/github/workflow/status/pinterest/esprint/Main%20workflow%20(PR)\u003e)](https://github.com/pinterest/esprint/actions?query=workflow%3A%22Main+workflow+%28PR%29%22) [![npm version](https://img.shields.io/npm/v/esprint)](https://www.npmjs.com/package/esprint)\n\nesprint (pronounced E-S-sprint) speeds up eslint by running the linting engine across multiple threads.\nesprint sets up a server daemon to cache the lint status of each file in memory. It uses a watcher to determine when files change, to only lint files as necessary. It also has a CI mode where it does not set up a daemon and just lints in parallel.\n\n## Configuration\n\nIn order to use esprint, first place an `.esprintrc` file in the root directory your project. This is similar to a `.flowconfig` if you use flow types. The `.esprintrc` file describes which paths to lint and which paths to ignore. You can also override the port to start the background server on.\nA sample `.esprintrc` file:\n\n```json\n{\n  \"paths\": [\"foo/*.js\", \"bar/**/*.js\"],\n  \"ignored\": [\"**/node_modules/**/*\"],\n  \"port\": 5004\n}\n```\n\nOptions:\n\n|       Name        |       Type        | Description                                                                                                       |\n| :---------------: | :---------------: | :---------------------------------------------------------------------------------------------------------------- |\n|    **`paths`**    | `{Array\u003cString\u003e}` | Glob-style paths for files to include when linting                                                                |\n|   **`ignored`**   | `{Array\u003cString\u003e}` | Glob-style paths to ignore (not watch) during dev mode for better performance (`.eslintignore` applies as normal) |\n|    **`port`**     |    `{Number}`     | (optional) Run the esprint background server on a specific port                                                   |\n|  **`formatter`**  |    `{string}`     | (optional) Use a specific output format - default: stylish                                                        |\n|    **`quiet`**    |    `{boolean}`    | (optional) Report errors only - default: false                                                                    |\n| **`maxWarnings`** |    `{number}`     | (optional) The max number of warnings that should trigger a failure. The default is to not fail on warnings       |\n\n## Usage\n\n### Default mode\n\nTo run esprint, use the following command anywhere in your project:\n\n```\nesprint\n```\n\nesprint will find the root of your project automatically and lint the whole project. In default mode, esprint will start a background server to watch source files and cache lint results in memory.\n\nBy default, esprint will split up linting duties across all CPUs in your machine. You can manually override this via the cli with the following argument:\n\n```\nesprint --workers=[num_workers]\n```\n\nTo kill the esprint server in the background \u0026 clear the cache, use the following command:\n\n```\nesprint stop\n```\n\nYou can run `esprint` from any subdirectory that `.esprintrc` is located in, and it will still properly lint all files as specified.\n\n### CI Mode\n\nIn CI environments, it is not always appropriate (or necessary) to start a background server. In this case, you can use the following command, which simply lints in parallel without setting up a background server:\n\n```\nesprint check\n```\n\n### CLI Options\n\n#### Auto fix\n\nTo use the eslint auto fix feature, add `--fix` when starting the server\n\n```\nesprint --fix\n```\n\nor when running in CI mode\n\n```\nesprint check --fix\n```\n\n#### Debug\n\nPrint debug output for esprint. Should only be used when you're running into issues\n\n```\nesprint --esprintDebug\n```\n\n#### Disable watchman\n\n```\nesprint --noWatchman\n```\n\n## Developing for esprint\n\nRefer to [CONTRIBUTING](https://github.com/pinterest/esprint/blob/master/CONTRIBUTING.md)\n","funding_links":[],"categories":["JavaScript","Tools"],"sub_categories":["Testing Tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinterest%2Fesprint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinterest%2Fesprint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinterest%2Fesprint/lists"}