An open API service indexing awesome lists of open source software.

https://github.com/sourcegraph/prettierrc

Prettier config for Sourcegraph projects
https://github.com/sourcegraph/prettierrc

Last synced: 3 months ago
JSON representation

Prettier config for Sourcegraph projects

Awesome Lists containing this project

README

          

# Sourcegraph Prettier Config

[![npm](https://img.shields.io/npm/v/@sourcegraph/prettierrc.svg)](https://www.npmjs.com/package/@sourcegraph/prettierrc)
[![downloads](https://img.shields.io/npm/dt/@sourcegraph/prettierrc.svg)](https://www.npmjs.com/package/@sourcegraph/prettierrc)
[![build](https://travis-ci.org/sourcegraph/prettierrc.svg?branch=master)](https://travis-ci.org/sourcegraph/prettierrc)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

Prettier config for projects at Sourcegraph.

## Usage

```
npm install --save-dev @sourcegraph/prettierrc
```

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

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

## Making changes

```
npm link
cd
npm link @sourcegraph/prettierrc
npm run prettier
```

## Publish a new version

Follow [semver](http://semver.org/). **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
```