1.1.0 • Published 2 years ago
@cssweekly/prettier-config v1.1.0
An example prettier-config
that can be extended
This project is used in Mastering Linting course, to demonstrate how can the same Prettier config be used in different projects, and how can some options from that config can be extended when Prettier config in JavaScript format (.prettierrc.js
) is used.
Installation & usage
Install via NPM and add to your development dependencies:
npm install @cssweekly/prettier-config --save-dev
Use the config in package.json
:
{
"prettier": "@cssweekly/prettier-config" ``
}
Use the config in .prettierrc.js
:
module.exports = {
...require("@cssweekly/prettier-config")
// ...
// Prettier options you want to override
// ...
}