Registry / devops / mrm-task-prettier

mrm-task-prettier

JSON →
library5.1.22jsnpmunverified

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-prettier
INSTALL
IMPORT
SIG · MRM-TASK-PRETTIER
M
mrm-task-prettier
devopsjavascriptv5.1.22
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

task
import { task } from 'mrm-task-prettier';
const mrmTaskPrettier = require('mrm-task-prettier').task;
ESM-only; node >= 10.13
default
import mrmTaskPrettier from 'mrm-task-prettier';
const mrmTaskPrettier = require('mrm-task-prettier');
Default export for usage with mrm

Run npx mrm prettier to set up Prettier, then execute npm run format to format code.

npx mrm prettier # After running, format code: npm run format
mrm --version
Debug
Known issues
breakingBreaking changes in mrm-core may affect this task; maintain lockfile for mrm versions >=4.
fix
Use npx mrm@4 prettier to lock mrm version.
affects: >=4.0.0
deprecatedNode <10.13 is no longer supported for mrm-task-prettier 5.x.
fix
Upgrade Node to >=10.13.
affects: >=5.0.0
gotchaPrettier options may be overridden by existing .editorconfig; ensure consistent indentation settings.
fix
Set indent option explicitly or use mrm task options prettierOptions.
affects: all
Errors
Common errors & fixes
Cannot find module 'mrm-task-prettier'
Package not installed globally or locally.
fix
Run npm install -g mrm-task-prettier or npx mrm prettier.
Error: Cannot find module 'mrm-core'
Missing mrm-core peer dependency.
fix
Install mrm-core: npm install mrm-core --save-dev
Upgrade
Version history
5.1.22latest on npm
Audit
Dependencies
mrm-corerequiredMrm core library providing task API and utilities
Agent activity
2 hits · last 30 days
node
2
Resources
mrm-task-prettier — npm install mrm-task-prettier · libregistry