Repository navigation
Conversation
eslint-comments rewrites gamut/ directives to @skillsoft/gamut/, and eslint-config updates the plugin name, plugin: extends, and rule keys in legacy .eslintrc files. Under a flat config the prefix is the plugins key, so eslint-comments skips itself and the checklist explains why. Also types eslint-plugin-gamut's recommended severities as literals, so the plugin fits ESLint's Plugin type in a typed flat config. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 20, 2026
…migrations Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # packages/gamut-codemods/src/presets/scope-swap/index.ts
dreamwasp
marked this pull request as ready for review
October 20, 2026 15:59
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Breaking change: the ESLint plugin is now
@skillsoft/eslint-plugin-gamut, so thegamut/rule prefix becomes@skillsoft/gamut/. The rule names don't change.Stack (split from #28, merge in order):
mainmaineslint-commentsrewrites// eslint-disable-next-line gamut/x(and the other directive forms) to@skillsoft/gamut/x.eslint-configupdates legacy.eslintrc/.eslintrc.json: the plugin name,plugin:extends, and rule keys. It does a targeted text rewrite, because these files are often JSONC.plugins: { gamut }). Soeslint-commentsskips itself when it finds aneslint.config.*, and the checklist explains why. Flat configs and.eslintrc.jsare left for the leftovers report.@skillsoft/eslint-plugin-gamut:configs.recommendeduses literal'error'severities (as const), so the plugin type-checks as an ESLintPluginin a typed flat config.PR Checklist
Testing Instructions
yarn nx test gamut-codemods(expect 71 tests) andyarn nx test eslint-plugin-gamut.Legacy config run:
The directive and
.eslintrc.jsonshould both use@skillsoft/gamut.Flat config run: in a new throwaway repo with an
eslint.config.js, the output starts with[eslint-comments] skipped: found flat ESLint config. Directives are left alone, and the next steps explain the plugins key.PR Links and Envs
🤖 Generated with Claude Code