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

@bedrockstreaming/prettier-config

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bedrockstreaming/prettier-config

Bedrock Streaming's Prettier config

  • 4.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
decreased by-71.43%
Maintainers
3
Weekly downloads
 
Created
Source

@bedrockstreaming/prettier-config

This package shares BedrockStreaming's Prettier configuration independently.

We usually duplicate the Prettier configuration in every project that uses @bedrockstreaming/eslint-config by adding a .prettierrc file. This is especially necessary when using the Visual Studio Code plugin for Prettier which needs to know the configuration to properly format files. But eslint-tools directly embed Prettier's settings in the ESLint configuration preventing the plugin from getting it.

https://github.com/BedrockStreaming/eslint-tools/blob/8df2f5a76bdd623d1dad3d97009ec94bf408ac92/packages/eslint-plugin-react/index.js#L7-L14

So this package allows you to avoid duplicating the few Prettier's rules in your projects.

Install

With NPM

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

With Yarn

yarn add -D @bedrockstreaming/prettier-config

Usage

The simplest usage is to add the following line in the package.json file.

"prettier": "@bedrockstreaming/prettier-config",

This method does not offer a way to extend the configuration to overwrite some properties from the shared configuration. If you need to do that, import the file in a .prettierrc.js file and export the modifications, e.g:

module.exports = {
  ...require('@company/prettier-config'),
  semi: false,
};

Keywords

FAQs

Package last updated on 18 Jan 2022

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