Skip to content

apaxsoftware/prettier-config-apax

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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)

About

A Prettier configuration based on the Airbnb JavaScript style guide

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published