@blueberrypie/prettier-config

Shared configuration for Prettier

Usage no npm install needed!

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

README

@blueberrypie/prettier-config

Installation

  1. Install:
npm install --save-dev prettier @blueberrypie/prettier-config
  1. Add the following to package.json:
{
  "scripts": {
    "fix:prettier": "prettier --ignore-path .lintignore --check --write \"**/*.{ts,tsx,js,jsx,json,css,html,md}\"",
    "lint:prettier": "prettier --ignore-path .lintignore --list-different \"**/*.{ts,tsx,js,jsx,json,css,html,md}\""
  },
  "prettier": "@blueberrypie/prettier-config"
}
  1. Add the following to .lintignore, adjusted as needed:
package-lock.json
build/