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 1,000,000+ packages pre-installed, including @imaginary-cloud/prettier-config with all npm packages installed. Try it out:

var prettierConfig = require("@imaginary-cloud/prettier-config")

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

@imaginary-cloud/prettier-config v1.0.0

Prettier config


Quickly format your JavaScript files with this easy to install and use Prettier configuration. This configuration is used on our ESLint React configuration, take a look at eslint-config-react


Prettier is an opinionated code formatter easy to configure and integrate with Code Editors. This configuration aims to quickly install and config JavaScript projects for consistent code style standards.

This package can be used as a stand-alone config or integrated with any linter. If you look to integrate with ESLint for React projects take a look at our configuration eslint-config-react using this Prettier config

How to install

npm install prettier @imaginary-cloud/prettier-config

How to use

In your package.json add:

"prettier": "@imaginary-cloud/prettier-config"

Under script objects

"format": "prettier --write \"{,!(node_modules)/**/}*.js\""


How to contribute to this open source library


Copyright © 2010-2020 Imaginary Cloud. This library is licensed under the MIT license.

About Imaginary Cloud

Imaginary Cloud

At Imaginary Cloud, we build world-class web & mobile apps. Our Front-end developers and UI/UX designers are ready to create or scale your digital product. Take a look at our website and get in touch! We'll take it from there.

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