Skip to content
This repository was archived by the owner on Aug 27, 2023. It is now read-only.

Beuterei/prettier-config

Repository files navigation

Contributors Forks Stargazers Issues


Logo

prettier-config

A shared prettier config for my projects

· Report Bug · Request Feature ·

About The Project

A shared prettier config for my projects. Utilizes prettier.

Installation

npm i -D @beuluis/prettier-config

Usage

Extend package.json file with the following configuration:

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

Extending

In case you want to extend prettier configurations, do not use the previous integration, but instead create a .prettierrc.js and:

module.exports = {
    ...require('@beuluis/prettier-config'),
    tabWidth: 2,
};

EditorConfig

Here is a EditorConfig to be used alongside this prettier config.

root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false

[*.json]
indent_size = 2

[*.{yaml,yml}]
indent_size = 2

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Contact

Luis Beu - me@luisbeu.de