Prettier shareable configuration.
- Opinionated code formatter with support for: JavaScript, Typescript, JSX, ...
- Sort the keys of a
package.json
file
I also used my packages:
@szum-tech/prettier-config is available as an npm package.
npm:
npm install -D prettier @szum-tech/prettier-config
yarn:
yarn add -D prettier @szum-tech/prettier-config
Full documentation on how to create a Prettier configuration can be found here.
Below are the recommended ways to add it:
First create prettier.config.js
file in root project directory. Then:
module.exports = require("@szum-tech/prettier-config");
{
"prettier": "@szum-tech/prettier-config"
}
Note You can ignore files by adding it to
.prettierignore
.
Optional, can add scripts to package.json
file :
{
"scripts": {
"prettier:check": "prettier --check .",
"prettier:write": "prettier --write ."
}
}
The changelog is regularly updated to reflect what's changed in each new release.
This project is licensed under the terms of the MIT license.