Combeenation Prettier config.
- Install:
$ npm i --save-dev @combeenation/prettier-config
- Edit
package.json
:{ // ... "prettier": "@combeenation/prettier-config" }
- Remove existing prettier config files like
.prettierrc.json
etc. - Create
.prettierignore
which could look this this:build/ node_modules/
This method does not offer a way to overwrite some properties from the shared configuration. In order to do so, one has to create a dedicated .prettierrc.js
file and use node imports like this:
module.exports = {
...require("@combeenation/prettier-config"),
semi: false,
};
This package comes with the following plugins pre-installed:
- @trivago/prettier-plugin-sort-imports
OptionsimportOrderSeparation
&importOrderSortSpecifiers
are set totrue
by default here. - prettier-plugin-tailwindcss
- prettier-plugin-packagejson
- @prettier/plugin-xml
All options provided by those plugin can be adjusted using the method described above in section Overwrite settings
.