typescript-eslint icon indicating copy to clipboard operation
typescript-eslint copied to clipboard

Repo: `lint-fix` script is broken

Open fisker opened this issue 6 months ago • 4 comments
trafficstars

Suggestion

I don't think pass --fix to

https://github.com/typescript-eslint/typescript-eslint/blob/e57126a23e3f9b0ec67665d47e37a429d7755753/package.json#L41

is correct.

Additional Info

No response

fisker avatar May 11 '25 17:05 fisker

Nice spot, thanks 🙂

JoshuaKGoldberg avatar May 12 '25 13:05 JoshuaKGoldberg

Hi! I tried looking into this. It looks like the lint script isn't configured properly either. The lint command at the root package.json runs the below Nx target:

https://github.com/typescript-eslint/typescript-eslint/blob/main/package.json#L155-L156

This means the root lint script isn't linting any code inside packages. Is this intended?

I tried removing that packages filter and then got one ESLint error inside the packages directory. This is present on the main branch so I'm guessing the lint workflow isn't catching this either.

lint error message inside packages

The lint-fix script has changed since this issue was reported and now seems to be passing the --fix flag correctly. But I believe the behaviour of the lint script itself has now changed (modified in #11226).

Are the root lint and lint-fix scripts supposed to lint/fix the entire project or everything except packages?

cseas avatar Jun 10 '25 11:06 cseas

Uh oh! @cseas, at least one image you shared is missing helpful alt text. Check https://github.com/typescript-eslint/typescript-eslint/issues/11201#issuecomment-2958835259 to fix the following violations:

  • Images should have meaningful alternative text (alt text) at line 10

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

🤖 Beep boop! This comment was added automatically by github/accessibility-alt-text-bot.

github-actions[bot] avatar Jun 10 '25 11:06 github-actions[bot]

Related: https://github.com/typescript-eslint/typescript-eslint/issues/11229

cseas avatar Jun 18 '25 07:06 cseas

I believe this was fixed by #11226. 👍

JoshuaKGoldberg avatar Sep 29 '25 14:09 JoshuaKGoldberg