Grunt plugin for formatting TypeScript files using typescript-formatter. Current version 2.0.0 works with Grunt ~0.4.1 and typescript-formatter ~3.0.1. Provides a tsfmt task with options for configuration. Suitable for legacy Grunt-based build pipelines; not actively maintained. Compared to direct use of tsfmt or prettier, this integrates into Grunt workflows.
npm install grunt-tsfmtNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic Gruntfile setup for formatting TypeScript files using grunt-tsfmt task.
Use 'tsfmt' or 'prettier' directly if not tied to Grunt.
Use Grunt 0.4.x or update to Grunt 1.x compatible alternative.
Check typescript-formatter documentation for valid options.
Update typescript-formatter to latest or use alternative formatter.
Ensure TypeScript version matches tsfmt's expected version (typically 2.x).
Install plugin: npm install grunt-tsfmt --save-dev and add grunt.loadNpmTasks('grunt-tsfmt') to Gruntfile.Add a tsfmt configuration to grunt.initConfig, e.g., tsfmt: { files: { src: ['src/**/*.ts'] } }.