Socket
Socket
Sign inDemoInstall

@apaxsoftware/prettier-config-apax

Package Overview
Dependencies
0
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @apaxsoftware/prettier-config-apax

A Prettier configuration based on the Airbnb JavaScript style guide


Version published
Maintainers
2
Install size
2.45 kB
Created

Readme

Source

prettier-config-apax

A Prettier configuration based on the Airbnb JavaScript style guide

Installation

npm install @apaxsoftware/prettier-config-apax --save-dev

or

yarn add @apaxsoftware/prettier-config-apax --dev

Usage

Create a .prettierrc.json file in your project root directory with a value:

"@apaxsoftware/prettier-config-apax"

If you need to overwrite some properties, create a .prettierrc.js file in your project root directory, import the configuration and export the modifications:

module.exports = {
  ...require('prettier-config-apax'),
  printWidth: 120,
};

Properties

printWidth

100 (reference)

tabWidth

2 (reference)

useTabs

false (reference)

semi

true (reference)

singleQuote

true (reference)

quoteProps

"as-needed" (reference)

jsxSingleQuote

false (reference)

trailingComma

"all" (reference)

bracketSpacing

true (reference)

jsxBracketSameLine

false (reference)

arrowParens

"always" (reference)

Keywords

FAQs

Last updated on 15 Apr 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc