1.0.0 • Published 6 years ago

formatted v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Formatted

A simple JavaScript code-formatter powered by prettier

Features

  • Zero config necessary
  • Automatic - you don't need to do anything
  • Fully configurable

Install

$ npm install -g formatted

Usage

cd my-project
formatted
# that's it

Configuration

Although no configuration is necessary formatted can be configured to your needs.

Custom configurations can be stored in .formattedrc, formatted.config.js and in the formatted property in your package.json.

Configuration properties

NameDescriptionDefault
semiIf set to true expressions must end with a semicolontrue
printWidthThe maximum length of a line100
tabWidthThe number of spaces per indentation-level2
useTabsIf set to true formatted will indent with tabsfalse
singleQuoteUse single quotes instead of double quotestrue
trailingCommaWhere to add trailing commasnone
bracketSpacingSpaces between brackets in object literalstrue

For more details check out prettier's docs

License

MIT © Tobias Herber