@jkx5/prettier-config
v0.0.3
Published
Prettier configuration adapted to ESLint Configuration
Downloads
4
Readme
Shared Prettier configuration
This shared Prettier configuration changes some of the default behavior.
Integrate into new project
- Install this package as devDependency
# with Yarn
$ yarn add -D @jkx5/prettier-config
# with npm
$ npm i -D @jkx5/prettier-config
# with pnpm
$ pnpm add -D @jkx5/prettier-config
- Install peer dependencies of this package in your project as devDependencies
Therefore, you can make use of the tool install-peerdeps:
# with Yarn
$ yarn dlx install-peerdeps --dev @jkx5/prettier-config
# with npm
$ npx install-peerdeps --dev @jkx5/prettier-config
#with pnpm
$ pnpm dlx install-peerdeps --dev @jkx5/prettier-config
- Use Prettier config in your project
Create a .prettierrc.js
file in project root with the following content:
import x5config from '@jkx5/prettier-config';
export default {
...x5config,
"singleQuote": true, // adjust/override some rules
}