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
- Host: GitHub
- URL: https://github.com/sourcegraph/prettierrc
- Owner: sourcegraph
- Created: 2017-11-05T00:56:30.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-06-20T20:27:35.000Z (over 3 years ago)
- Last Synced: 2025-01-23T05:19:09.815Z (about 1 year ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 5
- Watchers: 4
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sourcegraph Prettier Config
[](https://www.npmjs.com/package/@sourcegraph/prettierrc)
[](https://www.npmjs.com/package/@sourcegraph/prettierrc)
[](https://travis-ci.org/sourcegraph/prettierrc)
[](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
```