Socket
Book a DemoInstallSign in
Socket

@square/prettier-config

Package Overview
Dependencies
Maintainers
16
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@square/prettier-config

Square's Prettier config

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
365
204.17%
Maintainers
16
Weekly downloads
 
Created
Source

@square/prettier-config

Square's shared Prettier configuration.

Usage

Install

npm install --save-dev @square/prettier-config
yarn add --dev @square/prettier-config
pnpm install --dev @square/prettier-config

Configure

Reference the shared configuration in your package.json file:

{
  "name": "my-cool-library",
  "version": "9000.0.1",
  "prettier": "@square/prettier-config"
}

If you don’t want to use package.json, you can use any of the supported extensions to export a string, e.g. .prettierrc.json:

"@square/prettier-config"

Read more on Prettier configuration.

Philosophy

By far the biggest reason for adopting Prettier is to stop all the on-going debates over styles.

Prettier's Option Philosophy

This minimal, practically nonexistent, configuration is intended to provide consistent, automatic formatting throughout a project.

FAQs

Package last updated on 23 Apr 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