Skip to content

Commit 2a1d730

Browse files
authored
docs: clarify ignore cleanup in migration skill (#455)
1 parent 17c9352 commit 2a1d730

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎.agents/skills/migrate-to-rstack-cli/SKILL.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ Read every matching reference before editing. Load only the tools present in the
3434

3535
Rsbuild, Rslib, Rstest, Rslint, and Prettier remain transitive `rstack` dependencies. Remove obsolete direct dependencies and imports from the migrated scope; do not expect their names to disappear from the lockfile.
3636

37+
### Ignore cleanup
38+
39+
After migrating lint or formatting, remove exclusions from lint `ignores` and fmt `ignorePatterns` when the same paths are already covered by effective `.gitignore` rules; both commands read `.gitignore` automatically. For fmt, also remove `package-lock.json` and `pnpm-lock.yaml` from `ignorePatterns`; `rs fmt` ignores them by default.
40+
41+
Keep negations and fmt exclusions that must apply to explicitly passed files, which bypass `.gitignore`.
42+
3743
### Combined checks
3844

3945
After migrating lint and formatting commands, prefer the shorter combined command when behavior is equivalent:

‎.agents/skills/migrate-to-rstack-cli/references/prettier.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ Read this reference when the project uses the `prettier` CLI or API, `package.js
1616
8. Delete old config and ignore files only after their behavior is represented in `define.fmt`.
1717
9. Remove direct dependencies only when no script, config, API call, plugin peer requirement, or other tool still needs them.
1818

19-
`rs fmt` ignores `package-lock.json` and `pnpm-lock.yaml` by default. Drop redundant ignore entries during migration, but keep intentional negations.
20-
2119
Rstack creates `.rstack/cache/.gitignore` by default. Do not list `.rstack/cache` in the root `.gitignore`; add explicit rules only for custom cache paths.
2220

2321
`rs fmt` does not read Prettier configuration files, `.prettierignore`, or `.editorconfig`.

0 commit comments

Comments
 (0)