@smcv/prettier-config
v1.0.1
Published
A Prettier shareable config for projects using 'Prettier' and 'JavaScript Standard Style'.
Downloads
2
Maintainers
Readme
@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'