2.7.2 • Published 9 months ago

@mskcc/prettier-config v2.7.2

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
9 months ago

@mskcc/prettier-config

A prettier shareable config for mskcc projects.

Installation

npm install --save-dev prettier // Actual prettier
npm install --save-dev @mskcc/prettier-config // configuration file

This is only a shareable configuration. It does not install Prettier or any other part of the tool chain.

Usage

Reference it in package.json using the prettier property:

{
  "name": "my-projects-name",
  "prettier": "@mskcc/prettier-config",
  "devDependencies" : {
    "@mskcc/prettier-config": "^0.7.0"
  }
}

If you don't want to use package.json, you can use any of the supported extensions to export a string:

// .prettierrc.json
"@mskcc/prettier-config"
// prettier.config.js or .prettierrc.js

module.exports = '@mskcc/prettier-config';

Adding custom rules

  1. Create a JavaScript configuration file .prettierrc.js.
  2. Import the configuration file.
  3. Export the modified configuration
// .prettierrc.js
const prettierConfig = require('@mskcc/prettier-config');

module.exports = {
    ...prettierConfig,
    printWidth: 100
  };
2.7.2

9 months ago

2.7.0

11 months ago

2.6.1

1 year ago

2.7.1

11 months ago

2.7.0-beta.1

1 year ago

2.7.0-beta.0

1 year ago

2.7.0-beta.2

11 months ago

2.6.0

1 year ago

2.5.0

1 year ago

2.4.5

1 year ago

2.4.4

1 year ago

2.4.3

1 year ago

2.3.0

2 years ago

2.2.0

2 years ago

2.4.1

2 years ago

2.4.0

2 years ago

2.4.2

2 years ago

1.10.3

2 years ago

1.12.0

2 years ago

1.11.1

2 years ago

1.10.2

2 years ago

1.9.0

2 years ago

1.11.0

2 years ago

1.10.1

2 years ago

1.10.0

2 years ago

1.8.0

2 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.1.1

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.8.0

3 years ago

0.7.0

3 years ago