1.2.0 • Published 6 months ago
@tiagoporto/prettier-config v1.2.0
@tiagoporto/prettier-config
Shareable Config for Prettier
Installation
npm install --save-dev prettier @tiagoporto/prettier-config
Usage
// .prettierrc.json
"@tiagoporto/prettier-config"
In package.json
add the following scripts:
{
"scripts": {
"formatting:check": "prettier --check --ignore-unknown \"**/*\"",
"formatting": "npm run formatting:check -- --write"
}
}
Lint-staged
Check staged files formatting
// .lintstagedrc.mjs
export default {
'*': 'prettier --check --ignore-unknown --write',
}
Editor
For VSCode is recommended the following extensions:
1.2.0
6 months ago
1.1.0
6 months ago
1.0.0
8 months ago
1.0.0-alpha.2
1 year ago
1.0.0-alpha.1
1 year ago
1.0.0-alpha.0
1 year ago