At Monogram, we've always strived to produce quality code. Alongside TypeScript we believe that Prettier and ESLint help us do just that by enforcing our coding standards across all of our repositories, and by giving us instant feedback on potential errors. Adopting these tools has been a great journey so far, and we've seen vast improvements in the quality and consistency of our code. We welcome your feedback on prettier and eslint – please share with us how you're using them in your own work!
We're excited to announce that we've released two npm packages that make it easy for you to adopt Prettier and ESLint in your own work. The first package,
monogram-prettier, is a wrapper around prettier that makes it easy to use with all of your projects. The second package,
monogram-eslint, is a wrapper around eslint that makes it easy to use with all of your projects.
There are a lot of debates over code style within different teams. It can be frustrating trying to keep everyone happy. By adopting Prettier, you can automatically format your code so that everyone is on the same page - and stop wasting time arguing over style choices! Prettier is an extension for many popular code editors that will automatically format your code according to a set of rules. This means that you can just write your code and not worry about the formatting - Prettier will take care of it for you. Many teams have adopted Prettier as their standard for code formatting, and it's definitely worth considering for your team as well!
monogram-prettier installs in your package.json and it provides our own pre-defined prettier rules all you have to do is add install it and add it to your package.json.
Install the package via npm or yarn.