• Packages
  • Themes
  • Documentation
  • Blog
  • Discussions
Sign in

mprettier

Minimalistic prettier runner for more performant Atom startup
t9md
0.6.0 863
1
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

mprettier

:warning: Alpha status: Might introduce breaking changes until I set this stable(or remove this warning).

Minimalistic prettier runner for AtomEditor

  • Small overhead on Atom startup with less feature(E.g. no eslint integration for now)
  • You need configure prettier options directly in your config.cson, no fancy setting UI.
  • Trying to as explicit as possible for behavior/code/configuration parameters.

If this package is not for you, use prettier-atom which is basically better than this package.

img

How to use?

  • Invoke mprettier:format(ctrl-alt-f) on text editor.
  • If you have trouble, execute mprettier:clip-debug-info.
    • This command clip debug info into clipboard
    • Paste it to buffer then observe it by yourself before opening issue.

Config example

  • For prettierOptions, you need to edit config.cson manually.

config.cson

  mprettier:
    prettierOptions:
      bracketSpacing: false
      jsxBracketSameLine: true
      printWidth: 120
      semi: false
      trailingComma: "es5"

TODO

  • [x] determine parser to use from language grammar
  • [ ] ignore file, scope?
  • [x] ignore parser formatOnSave only and both formatOnSave + manual execution respectively
  • [x] detect user's prettier config by prettier.resolveConfig
  • [x] make prettier path configurable? flexibility which global/local prettier to use
  • [ ] support embedded code block
  • [x] format on save

Thanks

Thanks for creating super great library and tools, this package is greatly owning to following projects.

  • prettier
  • prettier-atom

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by