Package Exports
- formatted
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (formatted) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 formattedUsage
cd my-project
formatted
# that's itConfiguration
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
| Name | Description | Default |
|---|---|---|
| semi | If set to true expressions must end with a semicolon |
true |
| printWidth | The maximum length of a line | 100 |
| tabWidth | The number of spaces per indentation-level | 2 |
| useTabs | If set to true formatted will indent with tabs |
false |
| singleQuote | Use single quotes instead of double quotes | true |
| trailingComma | Where to add trailing commas | none |
| bracketSpacing | Spaces between brackets in object literals | true |
For more details check out prettier's docs
License
MIT © Tobias Herber