legacy-migration.mdc 532 B

1234567891011
  1. ---
  2. description: Strategy for migrating jQuery/KO/Less pieces toward React/SCSS.
  3. globs: ["**/jquery/**", "**/*.less", "**/*.ko.js", "**/*.vue", "**/*.tsx"]
  4. alwaysApply: false
  5. ---
  6. # Migration Strategy
  7. - When touching legacy code, always ask before adding typed adapters and moving logic to React/TS.
  8. - Replace jQuery DOM ops with state/effects; keep remaining jQuery isolated.
  9. - Only convert Less→SCSS for code that is migrated to react.js, don't mix less and scss for the same component.
  10. - Add regression tests before refactors.