You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/skills/migrate-to-rstack-cli/references/prettier.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,14 +6,15 @@ Read this reference when the project uses the `prettier` CLI or API, `package.js
6
6
7
7
## Steps
8
8
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.
10
10
2. Move Prettier options and overrides into `define.fmt` in `rstack.config.*`.
11
11
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.
12
12
4. Replace Prettier CLI commands with the matching `rs fmt` commands and preserve their file or glob arguments.
13
13
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.
14
14
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.
17
18
18
19
`rs fmt` ignores `package-lock.json` and `pnpm-lock.yaml` by default. Drop redundant ignore entries during migration, but keep intentional negations.
Copy file name to clipboardExpand all lines: .agents/skills/migrate-to-rstack-cli/references/rslint.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ Read this reference when the project uses `@rslint/core`, `rslint.config.*`, `rs
8
8
2. Move the old config into `define.lint`, replacing Rslint's `defineConfig()` wrapper and import. Receive `@rslint/core` exports from the factory parameter.
9
9
3. Replace custom `--config` paths with the migrated `rstack.config.*` path.
10
10
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.
Copy file name to clipboardExpand all lines: .agents/skills/migrate-to-rstack-cli/references/rstest.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ Read this reference when the project uses `@rstest/core`, `@rstest/adapter-rsbui
14
14
-`@rstest/core/importMeta` to `rstack/test/importMeta`
15
15
6. Search for remaining direct core or adapter imports. Remove `@rstest/core` and adapter dependencies only when no direct use remains.
16
16
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.
0 commit comments