Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@sourcegraph/prettierrc

sourcegraph7.4kApache-2.03.0.3

Prettier config for TypeScript projects at Sourcegraph

prettier, config, formatting

readme

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