Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kufu/prettier-config-smarthr
https://github.com/kufu/prettier-config-smarthr
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kufu/prettier-config-smarthr
- Owner: kufu
- License: mit
- Created: 2020-10-09T05:55:09.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-07T07:21:54.000Z (11 months ago)
- Last Synced: 2024-09-22T03:18:37.222Z (about 2 months ago)
- Size: 45.9 KB
- Stars: 0
- Watchers: 63
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# prettier-config-smarthr
A sharable prettier config for SmartHR.
## Installation
prettier-config-smarthr is available as an [npm package](https://www.npmjs.com/package/prettier-config-smarthr).
```sh
// with npm
npm install --save-dev prettier-config-smarthr// with yarn
yarn add --dev prettier-config-smarthr
```## How to use
Edit `package.json`.
```json
{
"name": "your project",
"prettier": "prettier-config-smarthr"
}
```If you don’t want to use `package.json`, you can use any of the supported extensions to export a string, e.g. `.prettierrc.json`:
```
"prettier-config-smarthr"
```Check here for details : https://prettier.io/docs/en/configuration.html
### How to extend
Create `.prettierrc.js` , import the file in a `.prettierrc.js` file and export the modifications.
```js
module.exports = {
...require("prettier-config-smarthr"),
"arrowParens": "avoid",
};
```