2.4.0 • Published 2 years ago
@younho9/prettier-config v2.4.0
@younho9/prettier-config
Shared prettier config that personally prefer
Install
$ npm install --save-dev prettier @younho9/prettier-config
Usage
Add prettier
key to your package.json
"keywords": ["prettier"],
+ "prettier": "@younho9/prettier-config",
"license": "MIT",
"main": "index.js"
.prettierignore
npm scripts
// package.json
{
"scripts": {
"format": "prettier --write . --ignore-path ./node_modules/@younho9/prettier-config/.prettierignore"
}
}
lint-staged
// package.json
{
"lint-staged": {
"*": [
"prettier --write --ignore-path ./node_modules/@younho9/prettier-config/.prettierignore"
]
}
}
format on save (VSCode)
// .vscode/settings.json
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"prettier.ignorePath": "./node_modules/@younho9/prettier-config/.prettierignore"
}
License
2.4.0
2 years ago
2.3.0
2 years ago
2.3.1
2 years ago
2.2.4
3 years ago
2.2.1
3 years ago
2.2.0
3 years ago
2.2.2
3 years ago
2.1.0
3 years ago
2.0.1
3 years ago
2.0.0
3 years ago
1.3.2
3 years ago
1.3.1
3 years ago
1.2.0
3 years ago
1.3.0
3 years ago
0.0.1
3 years ago
1.1.0
3 years ago
1.0.0
3 years ago
0.3.0
3 years ago
0.2.0
3 years ago
0.1.0
3 years ago
0.0.0
3 years ago