The Wayback Machine - https://web.archive.org/web/20200625043217/https://github.com/sourcegraph/prettierrc
Skip to content
Branch: master
Go to file
Clone

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Aug 1, 2018
Mar 22, 2020
Jan 29, 2020

README.md

Sourcegraph Prettier Config

npm downloads build code style: prettier

Prettier config for projects at Sourcegraph.

Usage

npm install --save-dev @sourcegraph/prettierrc

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

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

Making changes

npm link
cd <project>
npm link @sourcegraph/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

About

Prettier config for Sourcegraph projects

Resources

You can’t perform that action at this time.