JSPM

  • Created
  • Published
  • Downloads 937
  • Score
    100M100P100Q116030F
  • License MIT

Mrm task that adds Prettier

Package Exports

  • mrm-task-prettier
  • mrm-task-prettier/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mrm-task-prettier) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

mrm-task-prettier

Mrm task that adds Prettier.

What it does

  • Creates .prettierrc
  • Adds an npm script to run Prettier after tests
  • Installs dependencies

Usage

npx mrm prettier

Now run:

npm run format

Options

See Mrm docs for more details.

indent (default: tab)

Indentation, tab or number of spaces. Will be overwritten by options from EditorConfig.

prettierOptions

Prettier options, by default will try to infer options from EditorConfig.

prettierOverrides

Prettier overrides, by default will use overrides for Markdown to improve documentation readability.

prettierPattern (default: auto based on your dependencies)

Glob pattern to match file that should be formatted, for example **/*.{ts,tsx}.

Changelog

The changelog can be found in CHANGELOG.md.

Contributing

Everyone is welcome to contribute. Please take a moment to review the contributing guidelines.

Authors and license

Artem Sapegin and contributors.

MIT License, see the included License.md file.