JSPM

@toreda/prettier-config

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q40824F
  • License MIT

Toreda's standard prettier config for organization-wide use in all TypeScript projects.

Package Exports

  • @toreda/prettier-config

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 (@toreda/prettier-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@toreda/prettier-config

Toreda

Toreda's official organization-wide prettier-config for TypeScript projects.

Usage

Install using yarn

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

Install using npm

$ npm add @toreda/prettier-config --save-dev

Add to Project

  1. Navigate to your project's root folder.
  2. Open package.json
  3. Add a prettier key pointing to @toreda/prettier-config:
{
  // ...
  "prettier": "@toreda/prettier-config"
}

Note: If your package.json already contains a prettier key, you will need to replace the value with the value shown above.

Example

Here's a complete package.json example using the prettier key:

{
  "name": "sample-project-here",
  "version": "1.5.3",
  "description": "Sample project",
  "main": "./dist/index",
  "scripts": {
    "test": "yarn jest --coverage"
  },
  "author": "Toreda, Inc.",
  "license": "MIT",
  "prettier": "@toreda/prettier-config"
}