Mrm task that adds Prettier to a project. Version 5.1.22 is the latest stable release as of September 2023, with releases tied to the main mrm monorepo. It automatically creates .prettierrc config, adds npm scripts for formatting, and installs Prettier and related dependencies. Options include indent, prettierOptions, prettierOverrides, and prettierPattern. It infers settings from EditorConfig if available. Compared to manual Prettier setup, this task integrates with the Mrm ecosystem for streamlined project scaffolding across multiple tools.
npm install mrm-task-prettierVerified import paths — ran on the pinned version, not inferred.
Run npx mrm prettier to set up Prettier, then execute npm run format to format code.
Use npx mrm@4 prettier to lock mrm version.
Upgrade Node to >=10.13.
Set indent option explicitly or use mrm task options prettierOptions.
Run npm install -g mrm-task-prettier or npx mrm prettier.
Install mrm-core: npm install mrm-core --save-dev