0.4.1 • Published 1 year ago

@leather-wallet/prettier-config v0.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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-wallet/prettier-config
  • Add prettier configuration file:

    // .prettierrc.js
    import defaultConfig from '@leather-wallet/prettier-config';
    
    export default { ...defaultConfig };
  • Add prettier ignore patterns file:

    # .prettierignore
    
    node_modules/
    
    # Custom ignore patterns
    ...
  • Add prettier scripts:

    // package.json
    
    "scripts": {
      "format": "prettier --write \"*.{js,jsx,ts,tsx}\"",
      ...
    }

Usage

  • Manual usage from command line:

    npm run format

License

MIT © Leather Wallet LLC


⬅ Back


0.4.1

1 year ago

0.4.0

1 year ago

0.3.1

1 year ago

0.1.0

1 year ago

0.2.0

1 year ago

0.0.5

1 year ago

0.0.3

1 year ago

0.0.4

1 year ago

0.0.2

1 year ago

0.0.1

2 years ago