2.1.26 • Published 12 months ago

@newhighsco/prettier-config v2.1.26

Weekly downloads
257
License
ISC
Repository
github
Last release
12 months ago

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

2.1.25

1 year ago

2.1.26

12 months ago

2.1.23

1 year ago

2.1.24

1 year ago

2.1.22

1 year ago

2.1.21

1 year ago

2.1.20

1 year ago

2.1.19

2 years ago

2.1.18

2 years ago

2.1.17

2 years ago

2.1.16

2 years ago

2.1.14

2 years ago

2.1.15

2 years ago

2.1.12

2 years ago

2.1.13

2 years ago

2.1.11

2 years ago

2.1.9

2 years ago

2.1.10

2 years ago

2.1.8

2 years ago

2.1.6

3 years ago

2.1.5

3 years ago

2.1.7

3 years ago

2.1.4

3 years ago

2.1.2

3 years ago

2.1.3

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.18

3 years ago

2.0.17

3 years ago

2.0.15

4 years ago

2.0.16

4 years ago

2.0.14

4 years ago

2.0.13

4 years ago

2.0.12

4 years ago

2.0.11

4 years ago

2.0.10

4 years ago

2.0.9

4 years ago

2.0.8

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago