1.0.0 • Published 6 months ago

@xbsheng/prettier-config v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@xbsheng → prettier config

Adding to project

  1. Install the package:

    npm install -D @xbsheng/prettier-config
    # or
    yarn add -D @xbsheng/prettier-config
    # or
    pnpm add -D @xbsheng/prettier-config
  2. Create .prettierrc.mjs with the following contents:

    import prettierConfig from '@xbsheng/prettier-config'
    
    /**
     * @type {import("prettier").Config}
     */
    const config = {
      ...prettierConfig,
    
      // Add overrides here
      semi: false,
    }
    
    export default config
1.0.0

6 months ago