@oeyoews/prettier-config

1.0.2 • Public • Published

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;
})

Readme

Keywords

Package Sidebar

Install

npm i @oeyoews/prettier-config

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

2.94 kB

Total Files

3

Last publish

Collaborators

  • oeyoews