@gradient-network/prettier-config
v0.0.1
Published
Prettier config shared for Gradient Network.
Readme
@gradient-network/prettier-config
Prettier configuration shared for Gradient Network.
Usage
Install the package into your project.
pnpm add -D @gradient-network/prettier-configReference in your package.json by adding the field prettier.
Learn more: Sharing configurations
{
"prettier": "@gradient-network/prettier-config"
}VSCode Extension
Config extensions in your VSCode settings.
Learn more: Prettier VSCode
{
"prettier.configPath": "./package.json"
}Pre-commit Hook
Work with the git hook pre-commit, you need install husky and lint-staged.
Edit the file package.json and add the lint-staged object.
{
"lint-staged": {
"*": "prettier --ignore-unknown --write"
}
}Edit the file .husky/pre-commit and add the command.
lint-staged