{"id":18074888,"url":"https://github.com/robinloeffel/esbuild-plugin-eslint","last_synced_at":"2025-04-12T06:16:07.302Z","repository":{"id":43336541,"uuid":"454451520","full_name":"robinloeffel/esbuild-plugin-eslint","owner":"robinloeffel","description":"Lint your esbuild bundles with eslint. 🧐","archived":false,"fork":false,"pushed_at":"2024-06-12T17:52:33.000Z","size":328,"stargazers_count":8,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T06:15:43.621Z","etag":null,"topics":["esbuild","esbuild-plugin","eslint"],"latest_commit_sha":null,"homepage":"https://npmjs.com/esbuild-plugin-eslint","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robinloeffel.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}},"created_at":"2022-02-01T15:57:40.000Z","updated_at":"2025-03-01T00:19:34.000Z","dependencies_parsed_at":"2023-02-06T11:00:57.726Z","dependency_job_id":"8ba2bc64-1323-4541-8535-984d329acf5a","html_url":"https://github.com/robinloeffel/esbuild-plugin-eslint","commit_stats":{"total_commits":26,"total_committers":2,"mean_commits":13.0,"dds":"0.11538461538461542","last_synced_commit":"2a0902d2d008b70ea134f5013d26a1c0cb72517f"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinloeffel%2Fesbuild-plugin-eslint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinloeffel%2Fesbuild-plugin-eslint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinloeffel%2Fesbuild-plugin-eslint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinloeffel%2Fesbuild-plugin-eslint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robinloeffel","download_url":"https://codeload.github.com/robinloeffel/esbuild-plugin-eslint/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525139,"owners_count":21118620,"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":["esbuild","esbuild-plugin","eslint"],"created_at":"2024-10-31T10:23:42.037Z","updated_at":"2025-04-12T06:16:07.263Z","avatar_url":"https://github.com/robinloeffel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `esbuild-plugin-eslint`\n\n[![latest version on npm](https://img.shields.io/npm/v/esbuild-plugin-eslint)](https://www.npmjs.com/package/esbuild-plugin-eslint)\n[![npm downloads a week](https://img.shields.io/npm/dw/esbuild-plugin-eslint)](https://www.npmjs.com/package/esbuild-plugin-eslint)\n[![required node version](https://img.shields.io/node/v/esbuild-plugin-eslint)](https://github.com/nodejs/Release)\n[![esbuild peer dep](https://img.shields.io/npm/dependency-version/esbuild-plugin-eslint/peer/esbuild?label=esbuild%20peer%20dep)](https://github.com/evanw/esbuild)\n[![eslint peer dep](https://img.shields.io/npm/dependency-version/esbuild-plugin-eslint/peer/eslint?label=eslint%20peer%20dep)](https://github.com/eslint/eslint)\n[![package license](https://img.shields.io/npm/l/esbuild-plugin-eslint)](license)\n\n\u003e Lint your [`esbuild`](https://github.com/evanw/esbuild) bundles with [`eslint`](https://github.com/eslint/eslint). 🧐\n\nNicely integrates the most recent version of [`eslint`](https://github.com/eslint/eslint) into an [`esbuild`](https://github.com/evanw/esbuild) plugin.\n\n## How\n\n```bash\nnpm i esbuild-plugin-eslint eslint --save-dev\n```\n\n```js\nimport { build } from 'esbuild';\nimport eslint from 'esbuild-plugin-eslint';\n\nawait build({\n  // ...\n  plugins: [\n    eslint({ /* config */ })\n  ]\n});\n```\n\n```bash\nnode esbuild.config.js\n```\n\n## Config\n\nThis plugin respects your [ESLint configuration](https://eslint.org/docs/user-guide/configuring) as per default. It also takes a configuration object intended for the [ESLint constructor](https://eslint.org/docs/latest/developer-guide/nodejs-api#parameters) with the addition of a `filter`, `throwOnError`, and `throwOnWarning` property. The most important options are:\n\n### `filter`\n\nType: `RegExp`\u003cbr\u003e\nDefault: `/\\.(?:jsx?|tsx?|mts|cts|mjs|cjs|vue|svelte)$/`\u003cbr\u003e\nUsed by: [`esbuild`](https://github.com/evanw/esbuild)\u003cbr\u003e\nReference: [esbuild.github.io](https://esbuild.github.io/plugins/#on-load-options)\n\nTells esbuild what files to look at. Only files matching this pattern will be handled by the plugin.\n\n### `throwOnError`\n\nType: `boolean`\u003cbr\u003e\nDefault: `false`\u003cbr\u003e\nUsed by: [The plugin itself](https://github.com/robinloeffel/esbuild-plugin-eslint)\u003cbr\u003e\n\nInstructs the plugin to forward errors found by ESLint to esbuild and throw an error.\n\n### `throwOnWarning`\n\nType: `boolean`\u003cbr\u003e\nDefault: `false`\u003cbr\u003e\nUsed by: [The plugin itself](https://github.com/robinloeffel/esbuild-plugin-eslint)\u003cbr\u003e\n\nInstructs the plugin to forward warnings found by ESLint to esbuild and throw an error.\n\n### `fix`\n\nType: `boolean`\u003cbr\u003e\nDefault: `false`\u003cbr\u003e\nUsed by: [`eslint`](https://github.com/eslint/eslint)\u003cbr\u003e\nReference: [eslint.org (`options.fix`)](https://eslint.org/docs/latest/developer-guide/nodejs-api#parameters)\u003cbr\u003e\n\nControls whether to enable or disable the autofix feature of ESLint.\n\n### `useEslintrc`\n\nType: `boolean`\u003cbr\u003e\nDefault: `true`\u003cbr\u003e\nUsed by: [`eslint`](https://github.com/eslint/eslint)\u003cbr\u003e\nReference: [eslint.org (`options.useEslintrc`)](https://eslint.org/docs/latest/developer-guide/nodejs-api#parameters)\u003cbr\u003e\n\nIf set to `false`, ESLint will not respect any configuration files it finds.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinloeffel%2Fesbuild-plugin-eslint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobinloeffel%2Fesbuild-plugin-eslint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinloeffel%2Fesbuild-plugin-eslint/lists"}