7.0.0 • Published 3 years ago

@andyfangdz/prettierrc v7.0.0

Weekly downloads
25
License
-
Repository
github
Last release
3 years ago

andyfangdz Prettier Config

Greenkeeper badge Build Status code style: prettier

Based on sourcegraph/prettierrc

Usage

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
7.0.0

3 years ago

6.0.1

4 years ago

6.0.0

4 years ago

4.1.1

5 years ago

3.1.1

5 years ago

2.1.1

5 years ago