@withdouble/prettier-config
v1.1.0
Published
Double's central Prettier config file
Downloads
255
Keywords
Readme
prettier-config
Double's central Prettier config file
Install
npm i -D @withdouble/prettier-config [email protected] @trivago/prettier-plugin-sort-importsUsage
Create or update a .prettierrc.js file with the following format:
module.exports = {
...require("@withdouble/prettier-config"),
// include this if there is a particular import order
// importOrder: [],
}or in your package.json (if not specifying importOrder):
{
"prettier": "@withdouble/prettier-config"
}If using the .prettierrc.js file and a .prettierrc file currently exists, be sure to remove the .prettierrc file and update any prettier npm scripts to point at the new .prettierrc.js file
Rules
Here are the Prettier options and the prettier-plugin-sort-imports options
(Almost) all options are included in this module, even if they are using the default value. That way, it is easier to see what options are available and change them if necessary.
