1.0.1 • Published 4 months ago

@smcv/prettier-config v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

@smcv/prettier-config

A Prettier shareable config for projects using Prettier and JavaScript Standard Style as ESLint rules or separate processes.

Installation

npm install --save-dev @smcv/prettier-config

This is only a shareable configuration. It does not install Prettier, Standard, ESLint, or any other part of the tool chain.

Usage

Reference it in package.json using the prettier property:

{
  "name": "my-projects-name",
  "prettier": "@smcv/prettier-config",
  "devDependencies" : {
    "@smcv/prettier-config": "^1.0.0"
  }
}

If you don't want to use package.json, you can use any of the supported extensions to export a string:

// `.prettierrc.json`
"@smcv/prettier-config"
// `prettier.config.js` or `.prettierrc.js`
module.exports = '@smcv/prettier-config'