You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@agilecontent/prettier-config

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agilecontent/prettier-config

Base configuration for Prettier

1.0.2
latest
Source
npmnpm
Version published
Weekly downloads
246
-3.15%
Maintainers
1
Weekly downloads
 
Created
Source

@agilecontent/prettier-config

Base configuration for Prettier, used internally by @agilecontent

How to use

Install the package as development dependency:

npm:

npm i -D @agilecontent/prettier-config

yarn:

yarn add -D @agilecontent/prettier-config

In your package.json, add the following:

{
  "prettier": "@agilecontent/prettier-config"
}

We do not recommend, but if you need to change or add any other config to the prettier, you must remove the prettier option on package.json and create a .prettierrc.js file with the following content:

const baseConfig = require('@agilecontent/prettier-config');

module.exports = {
  ...baseConfig,
  //Add your config here
};

Config Reasoning

  • singleQuote: true: Prettier defaults to the quotes with fewer escapes in a given string. This introduces inconsistency. This config normalizes to only single quotes
  • "trailingComma": "all": This puts a comma to the end of every entry of objects and parameters. This prevents merge conflicts when new entries are added.
  • "proseWrap": "always": Applies to Markdown only. This breaks lines on paragraphs.
  • "overrides[0].options.printWidth": 100: Applies to Markdown only. Relaxes a bit the width of the lines, as plain text doesn't need to be so narrow.

FAQs

Package last updated on 31 Oct 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.