-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Convert tidier.js to TypeScript #3815
Copy link
Copy link
Closed
Labels
Area: Code QualityFor refactoring, cleanup, or improvements to maintainabilityFor refactoring, cleanup, or improvements to maintainabilityArea: Typescript MigrationRelated to Typescript Migration after the initial pr05 grant 2025 migration workRelated to Typescript Migration after the initial pr05 grant 2025 migration workEnhancementImprovement to an existing featureImprovement to an existing feature
Metadata
Metadata
Assignees
Labels
Area: Code QualityFor refactoring, cleanup, or improvements to maintainabilityFor refactoring, cleanup, or improvements to maintainabilityArea: Typescript MigrationRelated to Typescript Migration after the initial pr05 grant 2025 migration workRelated to Typescript Migration after the initial pr05 grant 2025 migration workEnhancementImprovement to an existing featureImprovement to an existing feature
Note: Preserved for CodeDay contributors.
This issue is part of the ongoing work to upgrade CodeMirror from v5 to v6 (see the parent issue for additional context). Alongside this upgrade, the project is also continuing a broader ongoing TypeScript Migration from JavaScript.
Increasing Access
As we're preparing to release the new CodeMirror v6 feature, we'd like to maintain consistency and long-term maintainability to convert files into TypeScript. Breaking down conversion process to happen incrementally through smaller, scoped modules and components can help contributors participate in the migration without needing to immediately understand the entire codebase at once.
Feature Details
The files within the upcoming CM v6 upgrade will need to be converted from JavaScript to TypeScript files.
This issue specifically focuses on
tidier.jsfile. This file runsPrettieron the activeCodeMirroreditor instance by formatting the current file content usingprettier.formatWithCursorand then updating the editor document while keeping the cursor's position.Suggestions to Start
tidier.jstotidier.ts.modeargument, as well as any other values that will be flagged during the conversion.