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

@twostoryrobot/prettier-config

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twostoryrobot/prettier-config

Prettier configuration for Two Story Robot

  • 5.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

npm (scoped)

TSR prettier

Get pretty code with prettier the way Two Story Robot likes it.

Usage

npm install --save-dev @twostoryrobot/prettier-config

Then you can source the config from your own .prettierrc.js.

module.exports = require('@twostoryrobot/prettier-config')

Now you can add a script to your project's package.json that calls prettier and it will reference the config file in the root of your project directory.

"scripts": {
  "prettier": "prettier --write 'src/**/*.js'",
  "prettier-check": "prettier --list-different 'src/**/*.js'"
}

Custom configuration

If you want to override the defaults at all, use this method:

const prettierConfig = require('@twostoryrobot/prettier-config')
module.exports = Object.assign({}, prettierConfig, { semi: true })

Note: please consider making a PR if you think the override will be useful for other projects.

FAQs

Package last updated on 04 Mar 2024

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

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