Title: Executable `eslint` not found · Issue #3261 · pre-commit/pre-commit · GitHub
Open Graph Title: Executable `eslint` not found · Issue #3261 · pre-commit/pre-commit
X Title: Executable `eslint` not found · Issue #3261 · pre-commit/pre-commit
Description: search you tried in the issue tracker is:issue is:open "not found" in:title executable in:title describe your issue After clearing my local pre-commit cache with pre-commit clean and then checking my code with pre-commit run --all-files....
Open Graph Description: search you tried in the issue tracker is:issue is:open "not found" in:title executable in:title describe your issue After clearing my local pre-commit cache with pre-commit clean and then checking ...
X Description: search you tried in the issue tracker is:issue is:open "not found" in:title executable in:title describe your issue After clearing my local pre-commit cache with pre-commit clean and then...
Opengraph URL: https://github.com/pre-commit/pre-commit/issues/3261
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Executable `eslint` not found","articleBody":"### search you tried in the issue tracker\n\nis:issue is:open \"not found\" in:title executable in:title \n\n### describe your issue\n\nAfter clearing my local pre-commit cache with `pre-commit clean` and then checking my code with `pre-commit run --all-files`...\r\n\r\nThe eslint dependency as well as the additional eslint dependencies are pulled down from `mirrors-eslint`\r\n\r\n```sh\r\n[INFO] Initializing environment for https://github.com/pre-commit/mirrors-eslint.\r\n[INFO] Initializing environment for https://github.com/pre-commit/mirrors-eslint:@typescript-eslint/eslint-plugin@6.11.0,@typescript-eslint/parser@6.11.0,eslint@8.54.0,eslint-config-prettier@9.0.0,eslint-plugin-i18next@6.0.3,eslint-plugin-import@2.29.0,eslint-plugin-prettier@5.0.1,eslint-plugin-storybook@0.6.15,eslint-plugin-unicorn@49.0.0,eslint-plugin-unused-imports@3.0.0,prettier@3.1.0.\r\n...\r\n[INFO] Installing environment for https://github.com/pre-commit/mirrors-eslint.\r\n[INFO] Once installed this environment will be reused.\r\n[INFO] This may take a few minutes...\r\n```\r\nand the eslint hook runs but fails with `Executable 'eslint' not found` as follows:\r\n\r\n```sh\r\neslint...................................................................Failed\r\n- hook id: eslint\r\n- exit code: 1\r\n\r\nExecutable `eslint` not found\r\n```\r\n\r\nThis change has happened in the last 3 weeks. It is now failing for completely unchanged code that has been re-run since 21 June 2024 at 17:51:49 BST which is when it last worked without any errors.\r\n\r\n\r\n\r\n\n\n### pre-commit --version\n\npre-commit 3.6.2\n\n### .pre-commit-config.yaml\n\n```yaml\ndefault_language_version:\r\n python: python3\r\n\r\nrepos:\r\n - repo: https://github.com/pre-commit/mirrors-eslint\r\n rev: v8.54.0\r\n hooks:\r\n - id: eslint\r\n additional_dependencies:\r\n - '@typescript-eslint/eslint-plugin@5.59.7'\r\n - '@typescript-eslint/parser@5.59.7'\r\n - eslint@8.54.0\r\n - eslint-config-prettier@8.8.0\r\n - eslint-plugin-i18next@6.0.0-8\r\n - eslint-plugin-import@2.27.5\r\n - eslint-plugin-prettier@5.0.0\r\n - eslint-plugin-storybook@0.6.11\r\n - eslint-plugin-unicorn@38.0.1\r\n - eslint-plugin-unused-imports@2.0.0\r\n - esquery@1.4.0 # 1.4.1 breaks eslint, so we have to explicitly pin this version\r\n files: '^my_frontend\\/(.*)\\.[jt]sx?$'\r\n types: [file]\r\n args: ['--parser-options', '{ tsconfigRootDir: \"my_frontend\" }', '--fix']\n```\n\n\n### ~/.cache/pre-commit/pre-commit.log (if present)\n\n_No response_","author":{"url":"https://github.com/glenveegee","@type":"Person","name":"glenveegee"},"datePublished":"2024-07-18T11:54:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/3261/pre-commit/issues/3261"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9d773e0d-61c6-a6dc-13e1-99139133348c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC82:5A6EF:10BDBDF:176C613:696E0791 |
| html-safe-nonce | 62a9550b9ccb8f9661fc783d86e7284adc8d4c857286212a499355c683b01e42 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzgyOjVBNkVGOjEwQkRCREY6MTc2QzYxMzo2OTZFMDc5MSIsInZpc2l0b3JfaWQiOiI3NDA0ODE5NzczOTg3MjQ0OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c80ffe13cc8d3219d09b4d7bb4f698d6d13aef17de8d281976ef0c7e13ffe02a |
| hovercard-subject-tag | issue:2416161331 |
| github-keyboard-shortcuts | repository,issues,commits,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pre-commit/pre-commit/3261/issue_layout |
| twitter:image | https://opengraph.githubassets.com/95c1dea7227b6af6617a04a699ab88c97e251c86dc2bc36f24bc29e25a3b4a01/pre-commit/pre-commit/issues/3261 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/95c1dea7227b6af6617a04a699ab88c97e251c86dc2bc36f24bc29e25a3b4a01/pre-commit/pre-commit/issues/3261 |
| og:image:alt | search you tried in the issue tracker is:issue is:open "not found" in:title executable in:title describe your issue After clearing my local pre-commit cache with pre-commit clean and then checking ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | glenveegee |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b5131b207ddd175abf059a848d5f4302ec0606b02211b989013be49cf08593e |
| turbo-cache-control | no-preview |
| go-import | github.com/pre-commit/pre-commit git https://github.com/pre-commit/pre-commit.git |
| octolytics-dimension-user_id | 6943086 |
| octolytics-dimension-user_login | pre-commit |
| octolytics-dimension-repository_id | 17689377 |
| octolytics-dimension-repository_nwo | pre-commit/pre-commit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17689377 |
| octolytics-dimension-repository_network_root_nwo | pre-commit/pre-commit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8590a63bfc8093b241930ca57d536c9a50f9680 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width