@newhighsco/prettier-config

2.1.22 • Public • Published

prettier-config NPM version

New High Score shareable config for Prettier

Installation

Install Prettier and @newhighsco/prettier-config:

yarn add -D prettier @newhighsco/prettier-config

Usage

New High Score Prettier rules come bundled in @newhighsco/prettier-config. To enable these rules, add a prettier property in your package.json. See the Prettier configuration docs for more details.

"prettier": "@newhighsco/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`
"@newhighsco/prettier-config"
// `prettier.config.js` or `.prettierrc.js`
module.exports = '@newhighsco/prettier-config';

Extending

This configuration is not intended to be changed, but if you have a setup where modification is required, it is possible. Prettier does not offer an "extends" mechanism as you might be familiar from tools such as ESLint.

To extend a configuration you will need to use a prettier.config.js or .prettierrc.js file that exports an object:

module.exports = {
    ...require('@newhighsco/prettier-config'),
    semi: false
};

CHANGELOG

Readme

Keywords

none

Package Sidebar

Install

npm i @newhighsco/prettier-config

Weekly Downloads

143

Version

2.1.22

License

ISC

Unpacked Size

2.45 kB

Total Files

3

Last publish

Collaborators

  • benedfit
  • newhighsco-bot