1.1.0 • Published 2 years ago
@mfilin/prettier-config v1.1.0
@mfilin/prettier-config
Extendable prettier configuration from person who's lazy enough to pack single config as a npm package.
Comes with both prettier config and .prettierignore
.
Installation
npm i --save-dev @mfilin/prettier-config
Configuration
There are multiple options. Note that you need only one of them, refer to official docs
In package.json:
"prettier": "@mfilin/prettier-config"
In .prettierrc
:
"@mfilin/prettier-config"
Extending .prettierignore
I'm not aware of a way to extend .prettierignore
in a fancy way, but prettier can be run with ignore-path
flag in
the CLI.
npx prettier . --write --ignore-path node_modules/@mfilin/prettier-config/.prettierignore