0.0.3 • Published 7 months ago

@jkx5/prettier-config v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

Shared Prettier configuration

This shared Prettier configuration changes some of the default behavior.

Integrate into new project

  1. 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
  1. 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
  1. 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
}
0.0.3

7 months ago

0.0.2

10 months ago

0.0.1

10 months ago