@froko/prettier-config
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

📥 Installation

npm install --save-dev @froko/prettier-config
yarn add --dev @froko/prettier-config
pnpm install --save-dev @froko/prettier-config

🔩 Usage

// prettier.config.mjs
import prettierConfig from '@froko/prettier-config'

export default {
  ...prettierConfig,
}
// package.json
{
  "prettier": "@froko/prettier-config"
}

📝 Content

const config = {
  semi: false,
  singleQuote: true,
  bracketSameLine: true,
  overrides: [
    {
      files: '*.md',
      options: {
        proseWrap: 'always',
      },
    },
  ],
}

export default config

There are no settigs for indentation and line length. Prettier inherits those settings from .editorconfig. Here you can find an example configuration.

Readme

Keywords

none

Package Sidebar

Install

npm i @froko/prettier-config

Weekly Downloads

33

Version

1.3.0

License

MIT

Unpacked Size

1.9 kB

Total Files

4

Last publish

Collaborators

  • froko