Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@twostoryrobot/prettier

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twostoryrobot/prettier - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

prettier.config.js

7

package.json
{
"name": "@twostoryrobot/prettier",
"version": "1.0.0",
"version": "2.0.0",
"description": "prettier configuration for Two Story Robot",
"main": "index.js",
"scripts": {
"postinstall": "ln -fs $(pwd)/prettierrc $(pwd)/../../../.prettierrc"
},
"main": "prettier.config.js",
"repository": {

@@ -10,0 +7,0 @@ "type": "git",

@@ -0,17 +1,32 @@

[![npm (scoped)](https://img.shields.io/npm/v/@twostoryrobot/prettier.svg)](https://www.npmjs.com/package/@twostoryrobot/prettier)
# 2SR prettier
Get pretty code with prettier the way Two Story Robot likes it.
## Usage
Installing the package will make a symlink in the root of your project to the
prettier config in this repo. It is recommended to add `.prettierrc` to your
`.gitignore` so you don't accidentally commit the symlink.
```bash
npm install @twostoryrobot/prettier
npm install --save-dev @twostoryrobot/prettier
```
Then you can source the config from your own `prettier.config.js`.
```js
module.exports = require('@twostoryrobot/prettier')
```
Or if you want to override the default at all (Note: please consider making a PR
if you think the override will be useful for other projects).
```js
const prettierConfig = require('@twostoryrobot/prettier')
module.exports = Object.assign({}, prettierConfig, { semi: true })
```
Make sure to install the peer dependencies
```bash
npm install prettier
npm install --save-dev prettier
```

@@ -36,5 +51,8 @@

```json
"scripts": {
"precommit": "prettier --write '**/*.js'"
"husky": {
"hooks": {
"pre-commit": "prettier --list-different '**/*.js'"
}
}
}
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc