prettier-config-mskcc
v0.2.0
Published
Prettier config for MSKCC projects
Downloads
2
Maintainers
Readme
prettier-config-mskcc
A prettier shareable config for mskcc projects. This controls the formatting,
while eslint-config-mskcc
controls the code quality.
Installation
pnpm install --save-dev prettier // Actual prettier
pnpm install --save-dev prettier-config-mskcc // configuration file
or
npm install --save-dev prettier // Actual prettier
npm install --save-dev prettier-config-mskcc // configuration file
Usage
Create a .prettierrc.js
file in your root directory, then add the appropriate
configuration(s):
// .prettierrc.js
module.exports = 'prettier-config-mskcc';
Adding custom rules
- Create a JavaScript configuration file
.prettierrc.js
. - Import the configuration file.
- Export the modified configuration
// .prettierrc.js
const prettierConfig = require('prettier-config-mskcc');
module.exports = {
...prettierConfig,
printWidth: 100,
tabWidth: 4,
};