From a3aee4bfa1feab086ec8dcd183a392b940e4a203 Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 20 Aug 2026 10:45:50 +0800 Subject: [PATCH] docs(skills): migrate VS Code extension settings --- .../skills/migrate-to-rstack-cli/references/prettier.md | 7 ++++--- .agents/skills/migrate-to-rstack-cli/references/rslint.md | 1 + .agents/skills/migrate-to-rstack-cli/references/rstest.md | 1 + scripts/dictionary.txt | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.agents/skills/migrate-to-rstack-cli/references/prettier.md b/.agents/skills/migrate-to-rstack-cli/references/prettier.md index 280cadbf..b4c4932d 100644 --- a/.agents/skills/migrate-to-rstack-cli/references/prettier.md +++ b/.agents/skills/migrate-to-rstack-cli/references/prettier.md @@ -6,14 +6,15 @@ Read this reference when the project uses the `prettier` CLI or API, `package.js ## Steps -1. Inventory formatting commands and inputs, Prettier options and overrides, ignore rules, `.editorconfig`, plugins, package.json sorting, and programmatic API calls. +1. Inventory formatting commands and inputs, Prettier options and overrides, ignore rules, `.editorconfig`, plugins, package.json sorting, programmatic API calls, and tracked VS Code settings. 2. Move Prettier options and overrides into `define.fmt` in `rstack.config.*`. 3. Move `.prettierignore` or custom `--ignore-path` rules into `ignorePatterns`. Rebase patterns from each ignore file's directory to the Rstack configuration directory when they differ, preserving rule order and negations. Translate relevant `.editorconfig` values into explicit formatting options. 4. Replace Prettier CLI commands with the matching `rs fmt` commands and preserve their file or glob arguments. 5. Reference plugins by package name, file path, or URL. Do not pass imported plugin objects, and keep each plugin package as a direct dependency. 6. When replacing `prettier-plugin-packagejson`, enable `sortPackageJson` and preserve the original manifest paths. -7. Delete old config and ignore files only after their behavior is represented in `define.fmt`. -8. Remove direct dependencies only when no script, config, API call, plugin peer requirement, or other tool still needs them. +7. If tracked VS Code configuration recommends `esbenp.prettier-vscode` or selects it with `editor.defaultFormatter`, replace it with `rstack.rstack` for scopes migrated to `rs fmt`, and move supported `prettier.*` formatting options into `define.fmt`. Preserve `editor.formatOnSave`, remove `source.fixAll.prettier` when no remaining scope uses it, and keep the Prettier extension for any scope that still does. +8. Delete old config and ignore files only after their behavior is represented in `define.fmt`. +9. Remove direct dependencies only when no script, config, API call, plugin peer requirement, or other tool still needs them. `rs fmt` ignores `package-lock.json` and `pnpm-lock.yaml` by default. Drop redundant ignore entries during migration, but keep intentional negations. diff --git a/.agents/skills/migrate-to-rstack-cli/references/rslint.md b/.agents/skills/migrate-to-rstack-cli/references/rslint.md index 5e9b6d43..d193b09a 100644 --- a/.agents/skills/migrate-to-rstack-cli/references/rslint.md +++ b/.agents/skills/migrate-to-rstack-cli/references/rslint.md @@ -8,6 +8,7 @@ Read this reference when the project uses `@rslint/core`, `rslint.config.*`, `rs 2. Move the old config into `define.lint`, replacing Rslint's `defineConfig()` wrapper and import. Receive `@rslint/core` exports from the factory parameter. 3. Replace custom `--config` paths with the migrated `rstack.config.*` path. 4. Remove `@rslint/core` only when no uncovered direct runtime API remains. Delete `rslint.config.*`. +5. If tracked VS Code configuration recommends `rstack.rslint`, replace it with the unified `rstack.rstack` extension. Move relevant `rslint.*` settings to their current `rstack.rslint.*` equivalents according to the [Rstack extension documentation](https://github.com/rstackjs/rstack-editor/blob/main/packages/vscode/README.md). Keep `source.fixAll.rslint` unchanged. ## Config Pattern diff --git a/.agents/skills/migrate-to-rstack-cli/references/rstest.md b/.agents/skills/migrate-to-rstack-cli/references/rstest.md index 60878dea..3a28a2d3 100644 --- a/.agents/skills/migrate-to-rstack-cli/references/rstest.md +++ b/.agents/skills/migrate-to-rstack-cli/references/rstest.md @@ -14,6 +14,7 @@ Read this reference when the project uses `@rstest/core`, `@rstest/adapter-rsbui - `@rstest/core/importMeta` to `rstack/test/importMeta` 6. Search for remaining direct core or adapter imports. Remove `@rstest/core` and adapter dependencies only when no direct use remains. 7. Delete `rstest.config.*` after all behavior is represented or intentionally supplied by automatic app/library extension. +8. If tracked VS Code configuration recommends `rstack.rstest`, replace it with the unified `rstack.rstack` extension. Move supported `rstest.*` settings to `rstack.rstest.*` according to the [Rstack extension documentation](https://github.com/rstackjs/rstack-editor/blob/main/packages/vscode/README.md); `rstest.nodeExecutable` instead becomes the shared `rstack.nodeExecutable` setting. ## Config Pattern diff --git a/scripts/dictionary.txt b/scripts/dictionary.txt index 7eb7d9b1..34f4332b 100644 --- a/scripts/dictionary.txt +++ b/scripts/dictionary.txt @@ -6,6 +6,7 @@ dirents editmsg errexit esac +esbenp extglob fnames huskyrc