Ninjas Practicing Multidimensionality
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@berun/fluent-prettier

3.0.24 • Public • Published

@berun/fluent-prettier

Use a chaining API to generate and simplify the modification of prettier configurations.

_Note: This is is part of the broader @berun/fluent suite of configurations, but may be used standalone.

Example

export default function(berun: Berun, options) {
  berun.prettier
    .semi(false)
    .bracketSpacing(true)
    .rangeStart(0)
    .insertPragma(true)
    .requirePragma(false)
    .arrowParens('always')
    .end()
}
 
results in `--no-semi --range-start 0 --insert-pragma --allow-parens 'always'`

Install

npm i @berun/fluent-prettier

DownloadsWeekly Downloads

47

Version

3.0.24

License

MPL-2.0

Unpacked Size

21.3 kB

Total Files

5

Last publish

Collaborators

  • avatar