@jjangga0214/prettier-config
v3.1.0
Published
A sharable config package for prettier
Downloads
26
Maintainers
Readme
@jjangga0214/prettier-config
A sharable config package and development environment for prettier.
Installation
npm install --save-dev @jjangga0214/prettier-config
# or
yarn add --dev @jjangga0214/prettier-config
# or
pnpm add --save-dev @jjangga0214/prettier-config
And you should also install peerDependencies
manually.
Check out package.json or npm info
.
# This does not install them all. This just show them on terminal.
npm info "@jjangga0214/prettier-config@latest" peerDependencies
Or install them all by install-peerdeps
.
# For npm
npx install-peerdeps --dev @jjangga0214/prettier-config
# For yarn
npx install-peerdeps --yarn --dev @jjangga0214/prettier-config
# For pnpm
npx install-peerdeps --pnpm --dev @jjangga0214/prettier-config
Usage
package.json:
{
"name": "your-cool-library",
"prettier": "@jjangga0214/prettier-config"
// Other fields are ommitted for brevity
}
Or you can import it into the javascript config file.
.prettierrc.js:
import config from '@jjangga0214/prettier-config'
export default config