Leather prettier config
This package is the prettier configuration for Leather
Shared prettier configuration
prettier is used to auto format code in many language formats (js, ts, tsx, md, json, yaml).
Contents
Setup
- Install as a dev dependency in packages / apps:
pnpm install -D @leather.io/prettier-config
-
Add prettier configuration file:
import defaultConfig from '@leather.io/prettier-config';
export default { ...defaultConfig };
-
Add prettier ignore patterns file:
node_modules/
...
-
Add prettier scripts:
// package.json
"scripts": {
"format": "prettier --write \"*.{js,jsx,ts,tsx}\"",
...
}
Usage
License
MIT © Leather Wallet LLC
⬅ Back