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

2.1.10 • Public • Published

Prettier Config

Factory functions for creating preset Prettier configurations. Primarily used in unison with the Lumos CLI.

Extending config

Update package.json:

{
  "lumos": {
    "prettier": {
      "arrowParens": "avoid"
    }
  }
}

Create file in configs folder:

configs/prettier.js

modules.exports = {
  arrowParens: 'avoid',
};

Default config

{
  arrowParens: 'avoid',
  bracketSpacing: true,
  jsxBracketSameLine: false,
  printWidth: 100,
  proseWrap: 'always',
  requirePragma: false,
  semi: true,
  singleQuote: true,
  tabWidth: 2,
  trailingComma: 'all',
  useTabs: false,
}

Beemo/prettier

Readme

Keywords

Package Sidebar

Install

npm i @rajzik/config-prettier

Weekly Downloads

9

Version

2.1.10

License

MIT

Unpacked Size

264 kB

Total Files

10

Last publish

Collaborators

  • silhan.jan