New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sourcegraph/prettierrc

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sourcegraph/prettierrc

TSLint config for TypeScript projects at Sourcegraph

1.0.0
Source
npm
Version published
Weekly downloads
1.5K
-23.43%
Maintainers
1
Weekly downloads
 
Created
Source

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 package.json:

{
  "scripts": {
    "prettier": "prettier --config node_modules/@sourcegraph/prettierrc/.prettierrc --list-different --write"
  }
}

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

Keywords

prettier

FAQs

Package last updated on 05 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts