0.2.4 • Published 9 months ago

@elgato/prettier-config v0.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@elgato/prettier-config

Prettier configuration used by Elgato projects.

@elgato/prettier-config npm package Join the Marketplace Makers Discord Elgato homepage

Usage

  1. Install @elgato/prettier-config.
npm install @elgato/prettier-config --save-dev
  1. Edit your package.json to reference the configuration.
"prettier": "@elgato/prettier-config"

Configuration

Prettier

OptionValue
endOfLinelf
printWidth120
singleQuote❌ Prefer double
semi✅ Prefer semicolons
tabWidth4 (2 for .yaml, .yml)
useTabs✅ Except .json, .jsonc, .md, .yaml, .yml
trailingCommaAll, except .jsonc

Multiline arrays

OptionValue
multilineArraysWrapThreshold-1 (manual)

Sort imports

OptionValue
importOrderThird-party modules first.
importOrderSeparation
importOrderSortSpecifiers
importOrderCaseInsensitive
importOrderParserPluginsTypeScript, decoratorAutoAccessors, explicitResourceManagement

Overrides

Overriding configuration can be achieved by removing the prettier entry from package.json, in favour of a .prettierrc.js file. For example, to prefer spaces over tabs:

module.exports = {
    ...require("@elgato/prettier-config"),
    tabWidth: 2,
    useTabs: false,
};

Recognitions

This project wishes to express thanks to those who work on Prettier, and Prettier plugins, with particular thanks to:

0.2.4

9 months ago

0.2.3

11 months ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.1

1 year ago