Ignore local .agents workspaces - #8049
Conversation
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
|
There was a problem hiding this comment.
Pull request overview
Updates repository-wide tooling configuration to consistently ignore local .agents workspaces, preventing agent-generated scratch files from being picked up by formatting/linting and from being committed.
Changes:
- Added
.agentsto Git ignore rules. - Excluded
.agentsfrom Prettier, ESLint, Stylelint, and Markdownlint file globs/ignore lists. - Kept existing ignore patterns consistent with current repo scripting and config structure.
Show a summary per file
| File | Description |
|---|---|
| package.json | Excludes .agents from the lint:md markdownlint-cli2 glob inputs. |
| eslint.config.mjs | Adds .agents/**/* to ESLint flat config globalIgnores. |
| .stylelintignore | Ignores CSS files under .agents for Stylelint runs. |
| .prettierignore | Ignores .agents directory for Prettier formatting/checks. |
| .gitignore | Prevents .agents workspace contents from being tracked by Git. |
Copilot's findings
- Files reviewed: 4/5 changed files
- Comments generated: 0
Closes #
Changelog
New
N/A
Changed
.agentsto repo-level ignore coverage for Git, Prettier, ESLint, Stylelint, and Markdown lint so local agent workspaces are excluded from globbed tooling.Removed
N/A
Rollout strategy
Testing & Reviewing
npm install,npm run build,npm test -- --run,npm run type-check,npm run lint,npm run lint:css,npm run format:diff.agents/check/*files are ignored by Git, Prettier, ESLint, Stylelint, and Markdown lint globs.npm run build,npm test -- --run,npm run type-check,npm run lint,npm run lint:css,npm run format:diffMerge checklist