Skip to content

Commit a3aee4b

Browse files
committed
docs(skills): migrate VS Code extension settings
1 parent 13307d5 commit a3aee4b

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ Read this reference when the project uses the `prettier` CLI or API, `package.js
66

77
## Steps
88

9-
1. Inventory formatting commands and inputs, Prettier options and overrides, ignore rules, `.editorconfig`, plugins, package.json sorting, and programmatic API calls.
9+
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.
1010
2. Move Prettier options and overrides into `define.fmt` in `rstack.config.*`.
1111
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.
1212
4. Replace Prettier CLI commands with the matching `rs fmt` commands and preserve their file or glob arguments.
1313
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.
1414
6. When replacing `prettier-plugin-packagejson`, enable `sortPackageJson` and preserve the original manifest paths.
15-
7. Delete old config and ignore files only after their behavior is represented in `define.fmt`.
16-
8. Remove direct dependencies only when no script, config, API call, plugin peer requirement, or other tool still needs them.
15+
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.
16+
8. Delete old config and ignore files only after their behavior is represented in `define.fmt`.
17+
9. Remove direct dependencies only when no script, config, API call, plugin peer requirement, or other tool still needs them.
1718

1819
`rs fmt` ignores `package-lock.json` and `pnpm-lock.yaml` by default. Drop redundant ignore entries during migration, but keep intentional negations.
1920

.agents/skills/migrate-to-rstack-cli/references/rslint.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Read this reference when the project uses `@rslint/core`, `rslint.config.*`, `rs
88
2. Move the old config into `define.lint`, replacing Rslint's `defineConfig()` wrapper and import. Receive `@rslint/core` exports from the factory parameter.
99
3. Replace custom `--config` paths with the migrated `rstack.config.*` path.
1010
4. Remove `@rslint/core` only when no uncovered direct runtime API remains. Delete `rslint.config.*`.
11+
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.
1112

1213
## Config Pattern
1314

.agents/skills/migrate-to-rstack-cli/references/rstest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Read this reference when the project uses `@rstest/core`, `@rstest/adapter-rsbui
1414
- `@rstest/core/importMeta` to `rstack/test/importMeta`
1515
6. Search for remaining direct core or adapter imports. Remove `@rstest/core` and adapter dependencies only when no direct use remains.
1616
7. Delete `rstest.config.*` after all behavior is represented or intentionally supplied by automatic app/library extension.
17+
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.
1718

1819
## Config Pattern
1920

scripts/dictionary.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dirents
66
editmsg
77
errexit
88
esac
9+
esbenp
910
extglob
1011
fnames
1112
huskyrc

0 commit comments

Comments
 (0)