@shelf/prettier-config

Reusable Prettier config

Usage no npm install needed!

<script type="module">
  import shelfPrettierConfig from 'https://cdn.skypack.dev/@shelf/prettier-config';
</script>

README

prettier-config

Reusable prettier config

Install

$ yarn add --dev @shelf/prettier-config

Usage

In your package.json

{
  "prettier": "@shelf/prettier-config"
}

Config Content

module.exports = {
  printWidth: 100,
  singleQuote: true,
  bracketSpacing: false,
  trailingComma: 'es5',
  parser: 'typescript',
  arrowParens: 'avoid'
};

Publish

$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags

License

MIT © Shelf