1.0.2 • Published 2 years ago

@oeyoews/prettier-config v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago