2.7.3 • Published 1 year ago
@mskcc/prettier-config v2.7.3
@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 fileThis 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
- Create a JavaScript configuration file
.prettierrc.js. - Import the configuration file.
- Export the modified configuration
// .prettierrc.js
const prettierConfig = require('@mskcc/prettier-config');
module.exports = {
...prettierConfig,
printWidth: 100
};2.7.3
1 year ago
2.7.2
1 year ago
2.7.0
2 years ago
2.6.1
2 years ago
2.7.1
2 years ago
2.7.0-beta.1
2 years ago
2.7.0-beta.0
2 years ago
2.7.0-beta.2
2 years ago
2.6.0
2 years ago
2.5.0
2 years ago
2.4.5
2 years ago
2.4.4
2 years ago
2.4.3
2 years 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
3 years ago
1.12.0
3 years ago
1.11.1
3 years ago
1.10.2
3 years ago
1.9.0
3 years ago
1.11.0
3 years ago
1.10.1
3 years ago
1.10.0
3 years ago
1.8.0
3 years ago
1.7.0
3 years ago
1.6.0
3 years ago
1.5.0
4 years ago
1.1.1
4 years ago
1.4.0
4 years ago
1.3.0
4 years ago
1.1.0
4 years ago
1.0.0
4 years ago
0.8.0
4 years ago
0.7.0
4 years ago