@tokilabs/prettier-config
v1.0.1
Published
Toki Labs Prettier Config
Downloads
7
Readme
Shared Prettier configuration
This is Toki Labs shared Prettier configuration and it changes some of the default behavior.
Integrate into new project
1. Install this package as devDependency
# with Yarn
$ yarn add -D @tokilabs/prettier-config
# with npm
$ npm i -D @tokilabs/prettier-config
# with pnpm
$ pnpm add -D @tokilabs/prettier-config
2. Install peer dependencies
The configuration requires some packages (including prettier) to work. You should install them in your project as devDependencies.
To do that, you can make use of the tool install-peerdeps:
# with Yarn
$ yarn dlx install-peerdeps --dev @tokilabs/prettier-config
# with npm
$ npx install-peerdeps --dev @tokilabs/prettier-config
#with pnpm
$ pnpm dlx install-peerdeps --dev @tokilabs/prettier-config
3. Configure your project
Create a .prettierrc file in project root with the following content:
"@tokilabs/prettier-config"
OR
to the prettier
property of your package.json
{
...
"prettier": "@tokilabs/prettier-config"
...
}