Skip to content

shahbaz17/prettier-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💅 prettier-config of @shahbaz17

code style: prettier

An opinionated Prettier config.

🔗 Getting Started

Install via NPM or Yarn:

Using npm:

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

Using yarn:

yarn add -D @mdsbzalam/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 @mdsbzalam/prettier-config

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

# Using NPM:
(
  export PKG=@mdsbzalam/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=@mdsbzalam/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": "@mdsbzalam/prettier-config"
}

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

module.exports = {
  ...require('@mdsbzalam/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

⚖️ License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published