Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @pxblue/prettier-config with all npm packages installed. Try it out:

require("prettier/package.json"); // prettier is a peer dependency. var prettierConfig = require("@pxblue/prettier-config")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@pxblue/prettier-config v1.0.2

Prettier config for PXBlue

PX Blue Prettier Configuration

This package contains the PXBlue prettier and editorconfig profiles used to enforce consistent code style.


From the root of your project, install prettier:

yarn add --dev prettier

and the PX Blue prettier config:

yarn add --dev @pxblue/prettier-config


Add the following script to your package.json.

"prettier": "@pxblue/prettier-config",
"scripts": {
    "prettier": "prettier \"src/**/**.{ts,tsx,js,jsx,json,css,scss,html}\" --write",

The --write flag will automatically fix all code style violations.

You can update the file extensions list to suit the particular files you would like to format.


To format the files in your project, run yarn prettier.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free