@beuluis/prettier-config
v2.0.2
Published
A shared prettier config for my projects
Downloads
9
Maintainers
Readme
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.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Contact
Luis Beu - [email protected]