Add lint:fix commands and update agent guidance#5303
Open
jamesricky wants to merge 2 commits intomainfrom
Open
Add lint:fix commands and update agent guidance#5303jamesricky wants to merge 2 commits intomainfrom
lint:fix commands and update agent guidance#5303jamesricky wants to merge 2 commits intomainfrom
Conversation
78ab8b9 to
1c66801
Compare
Add `lint:fix` scripts to all packages, demo services, docs, and storybook to provide a single command for auto-fixing ESLint, Prettier, and Stylelint issues. A root-level `lint:fix` script orchestrates all workspaces. `AGENTS.md` is updated to document these commands and instruct agents to run `lint:fix` after making code changes.
1c66801 to
ba58c2f
Compare
johnnyomair
reviewed
Mar 12, 2026
demo/site/package.json
Outdated
Comment on lines
+25
to
+27
| "lint:fix:eslint": "eslint --fix --max-warnings 0 src/ '**/*.json' --no-warn-ignored", | ||
| "lint:fix:prettier": "pnpm exec prettier --write '*.{ts,js,json,md,yml,yaml,css,scss}'", | ||
| "lint:fix:style": "pnpm exec stylelint --fix '**/*.{css,scss}'", |
Collaborator
There was a problem hiding this comment.
What do you think about reusing the existing scripts?
"lint:fix:eslint": "pnpm run lint:eslint --fix",
"lint:fix:prettier": "pnpm run lint:prettier --write",
"lint:fix:style": "pnpm run lint:style --fix",
Then we (or the agent) won't forget to update one of the two scripts when making some changes.
Contributor
Author
There was a problem hiding this comment.
Good point, I did this for eslint and stylelint.
It's not possible for prettier unfortunately, as this needs either the --check or the --write argument, so appending one to the other doesn't work.
We could have a base-prettier script, when separate :check and :fix scripts, but I think that's overkill.
Collaborator
thomasdax98
approved these changes
Mar 16, 2026
johnnyomair
approved these changes
Mar 17, 2026
Collaborator
johnnyomair
left a comment
There was a problem hiding this comment.
IMO we could reuse lint:prettier for lint:fix:prettier, but I'm fine with the duplication as well.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Add
lint:fixscripts to all packages, demo services, docs, and storybook to provide a single command for auto-fixing ESLint, Prettier, and Stylelint issues. A root-levellint:fixscript orchestrates all workspaces.AGENTS.mdis updated to document these commands and instruct agents to runlint:fixafter making code changes.