[![Greenkeeper badge](https://badges.greenkeeper.io/andyfangdz/prettierrc.svg)](https://greenkeeper.io/) [![Build Status](https://travis-ci.org/andyfangdz/prettierrc.svg?branch=master)](https://travis-ci.org/andyfangdz/prettierrc) [![code style: prettier]


017.0.03 years ago4 years agoMinified + gzip package size for @andyfangdz/prettierrc in KB


andyfangdz Prettier Config

Greenkeeper badge Build Status code style: prettier

Based on sourcegraph/prettierrc


npm install --save-dev @andyfangdz/prettierrc

Then add this prettier.config.js to the project:

module.exports = require('@andyfangdz/prettierrc')

Example scripts to go in package.json:

    "prettier": "prettier --write src/**/*.js src/**/*.jsx src/**/*.css src/*.jsx src/*.js",
    "prettier-watch": "onchange 'src/*.jsx' 'src/*.js' 'src/**/*.js' 'src/**/*.jsx' 'src/**/*.css' -- prettier --write {{changed}}"

Making changes

npm link
cd <project>
npm link @andyfangdz/prettierrc
npm run prettier

Publish a new version

Follow semver. Changing or adding a rule is a breaking change and requires a new major version.

npm version major|minor|patch
git push
git push --tags
npm publish

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.