migrate-to-rslint
Skill97 starsChanged 3 months agoMITView on GitHub
Migrate ESLint flat config or Oxlint to Rslint, preserving rule options, file scopes, and plugins while updating lint scripts, editor settings, and inline directives.
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Official docs first: use Rslint docs for CLI, config, inline directives, VS Code settings, rules, and presets.
- Distinctive: line 23
Preserve lint intent: keep supported rule severities/options where Rslint supports them.
- Distinctive: line 33
If the source linter is not covered by a reference yet, inventory the current behavior and explain that no dedicated migration reference …
- Very specific: line 42
Use a supported rslint.config.* format.
- Distinctive: line 43
Update package scripts, CI, hooks, and staged-file commands in the migrated scope.
- Distinctive: line 44
Update existing editor integration using the Rslint VS Code guide.
- Distinctive: line 47
Run the migrated lint command.
- Distinctive: line 48
Check effective rules/options, file coverage, suppressions, and plugin execution against the source inventory.
- Distinctive: line 50
If the project had a fix command, run the migrated fix command only when appropriate for the task.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- cspell:words Rslint rslint -->Migrate to Rslint
Goal
Migrate lint tooling to Rslint with minimal behavior changes and clear validation.
Supported source linters
- ESLint flat config
- Oxlint
Migration principles (must follow)
- Official docs first: use Rslint docs for CLI, config, inline directives, VS Code settings, rules, and presets. Check capabilities against the installed version; historical migration gaps and workarounds are not permanent limitations.
- Smallest-change-first: migrate package, command, config, and editor wiring before changing source files.
- Preserve lint intent: keep supported rule severities/options where Rslint supports them; call out unsupported rules/plugins instead of silently dropping behavior.
- Preserve inline suppression intent: preserve which directives take effect, their rule targets, and their scope. Keep compatible prefixes unless the user requests renaming; translate source-only syntax and account for disabled directive compatibility in the source-specific guide.
- Validate before cleanup: switch lint entry points to Rslint and validate the migrated scope before removing obsolete source-linter artifacts. Report unsupported-rule coverage differences without treating them as a blocker or requiring separate approval.
Workflow
- Detect source linter
- ESLint flat config:
eslint.config.*,eslintdependency, or package scripts that runeslint. - Oxlint:
.oxlintrc.json,.oxlintrc.jsonc,oxlint.config.*,oxlintdependency, or commands that runoxlint. - Record installed versions, commands, working directories, environment switches, and the scope being migrated. Include shared configs, nested configs, and root fallback behavior within that scope.
- If the source linter is not covered by a reference yet, inventory the current behavior and explain that no dedicated migration reference exists.
- ESLint flat config:
- Prepare Rslint and apply the source-specific guide
- Select and install the intended
@rslint/coreversion with the repository's package manager before checking its rules, config, and plugin APIs. Respect existing version constraints and retain the source linter for validation. - ESLint flat config: references/eslint-flat-config.md
- Oxlint: references/oxlint.md
- For community or local JS plugins from either source, also read references/eslint-plugins.md.
- Select and install the intended
- Update lint entry points
- Use a supported
rslint.config.*format. Keep source plugin dependencies required by the translated config. - Update package scripts, CI, hooks, and staged-file commands in the migrated scope. Use the Rslint CLI reference to translate flags while preserving working directories, file arguments, warning thresholds, and environment switches.
- Update existing editor integration using the Rslint VS Code guide. Keep unrelated editor tools and settings.
- Use a supported
- Validate behavior
- Run the migrated lint command.
- Check effective rules/options, file coverage, suppressions, and plugin execution against the source inventory. A successful exit alone does not establish equivalent behavior.
- For enabled source rules without a validated native or compatible JS-plugin replacement, omit unsupported target keys and record the rule names, affected file scope, and lost coverage for the final report. Continue the migration with the supported rules.
- If the project had a fix command, run the migrated fix command only when appropriate for the task.
- Resolve target config-loading errors, invalid options for supported rules, command failures, and editor-integration errors before cleanup.
- Cleanup and summarize
- Confirm all lint entry points in the migrated scope use Rslint, then remove obsolete source-linter commands, configuration, and dependencies after validation.
- Summarize the completed switchover and validation, naming any omitted rules/plugins, affected scopes, and coverage or behavior changes.
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- create-draft-release-notesSkill
- mdx-to-markdownSkill
- pr-creatorSkill
- release-blog-writerSkill
- rstack-docs-writerSkill
- rstack-eco-ci-debugSkill
- rstack-repo-maintainSkill
- rstack-skill-evaluatorSkill
- migrate-to-rsbuildSkill
- migrate-to-rslibSkill
- migrate-to-rstestSkill
- rsbuild-best-practicesSkill
- rsbuild-v2-upgradeSkill
- rsdoctor-analysisSkill
- rsdoctor-v2-upgradeSkill
- rslib-best-practicesSkill
- rslib-modern-packageSkill
- rspack-best-practicesSkill
- rspack-debuggingSkill
- rspack-split-chunksSkill
- rspack-tracingSkill
- rspack-v2-upgradeSkill
- rspress-best-practicesSkill
- rspress-custom-themeSkill
- rspress-description-generatorSkill
- rspress-docs-generatorSkill
- rspress-v2-upgradeSkill
- rstest-best-practicesSkill
- rstest-debuggingSkill
- storybook-rsbuildSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

