3.0.1 • Published 9 months ago

@ikscodes/prettier-config v3.0.1

Weekly downloads
65
License
MIT
Repository
github
Last release
9 months ago

💅 prettier-config

code style: prettier

An opinionated Prettier config.

🔗 Getting Started

Install via NPM or Yarn:

Using npm:

npm install @ikscodes/prettier-config --save-dev

Using yarn:

yarn add -D @ikscodes/prettier-config

Install required peerDependencies:

If using npm@>7.x, peer dependencies will be installed automatically, assuming no conflicts arise between peer dependency versions within your project.

If using npm@>5.x, use this shortcut (yarn will be automatically detected, if in use):

npx install-peerdeps --dev @ikscodes/prettier-config

Alternatively, Linux and macOS users can one of these commands:

# Using NPM:
(
  export PKG=@ikscodes/prettier-config;
  npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)
# Using Yarn:
(
  export PKG=@ikscodes/prettier-config;
  npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs yarn add -D "$PKG@latest"
)

🛠️ Usage

If you don't need additional settings or overrides, you can set the prettier key in package.json:

{
  "prettier": "@ikscodes/prettier-config"
}

Or, if you need more flexibility, you can use require in .prettierrc.js:

module.exports = {
  ...require('@ikscodes/prettier-config'),
  // ...Override settings ad hoc
}

🗜️ Versioning

+————— Major version is synchronized with Prettier's major version.
| +——— Minor version has BREAKING CHANGES or features.
| | +— Patch version has non-breaking changes.
| | |
x.x.x

It's recommended that you pin the version of @ikscodes/prettier-config with a semver tilde (~) so as to avoid unintended breaking changes when updating your NPM depedencies.

⚖️ License

MIT

3.0.1

9 months ago

3.0.0

9 months ago

2.2.0

2 years ago

2.0.2

2 years ago

2.0.1

3 years ago

2.0.0

4 years ago

1.0.0

4 years ago

0.1.0

4 years ago