What is Unibeautify
Unibeautify is a universal code beautifier.
The one beautifier to rule them all!
Unibeautify joins multiple beautifiers into one unified experience.
"Beautifier" will refer to either a code formatter (e.g. Prettier) or linter with fix mode enabled (e.g.
eslint --fix
).
Let's say you want to use multiple beautifiers to format the code in your project, which use multiple languages. For example, for your JavaScript you may format using Prettier and ESLint. You may also have Python code you format with autopep8 or C++ code you format with ClangFormat.
Each of these beautifiers support different options, languages, and editor integrations. With Unibeautify, this experience is made consistent.
Let's consider Atom editor integration.
Atom Package | Prettier | ESLint | Autopep8 | ClangFormat |
---|---|---|---|---|
atom-beautify (Unibeautify for Atom) | ✅ | ✅ | ✅ | ✅ |
prettier-atom | ✅ | ✅ | ❌ | ❌ |
linter-eslint | ❌ | ✅ | ❌ | ❌ |
python-autopep8 | ❌ | ❌ | ✅ | ❌ |
clang-format | ❌ | ❌ | ❌ | ✅ |
Unibeautify does not handle any of the code formatting itself. Instead Unibeautify focuses on managing the underlying beautifiers and providing an exceptional user experience regardless of languages or beautifiers involved.