A Grunt plugin that wraps typescript-formatter to automatically format TypeScript files according to configurable rules. Current stable version is 0.4.1, last updated in 2015. It integrates into Grunt ~0.4.1 workflows with a single task named 'typescript-formatter'. Alternatives include running typescript-formatter directly or using other formatters like prettier. The plugin is minimal and takes a 'files' configuration for source files and an optional 'options.configuration' object.
npm install grunt-typescript-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure and run the grunt-typescript-formatter task in a Gruntfile.
Ensure Grunt is installed and you run the command 'grunt' after setting up the task.
Consider using typescript-formatter directly or prettier.
Use the exact string 'typescript-formatter' in grunt.initConfig.
Set options.configuration instead of options directly.
Run 'npm install grunt-typescript-formatter --save-dev' and add 'grunt.loadNpmTasks('grunt-typescript-formatter');' to Gruntfile.Run 'npm install typescript-formatter --save-dev'.
Ensure options is an object with a 'configuration' key, e.g., options: { configuration: { indent: ' ' } }.