@oeyoews/prettier-config
v1.0.2
Published
personal prettier config
Downloads
2
Readme
prettier-config-standard
A Prettier shareable config for projects using Prettier and JavaScript Standard Style as ESLint rules or separate processes.
Installation
npm install --save-dev @oeyoews/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:
{
"prettier": "@oeyoews/prettier-config",
}
If you don't want to use package.json
, you can use any of the supported
extensions to export a string:
// `.prettierrc.json`
"@oeyoews/prettier-config"
// `prettier.config.js` or `.prettierrc.js`
module.exports = '@oeyoews/prettier-config'
For example, if you need to change it so that semicolons are required:
// `prettier.config.js` or `.prettierrc.js`
const prettierConfig = require('@oeyoews/prettier-config')
module.exports = Object.assign({}, prettierConfig, {
// semi: true;
})