Docker on macOS without Docker Desktop

After the recent announcement from Docker that Docker Desktop for Mac won’t be free anymore, I tried to find an alternative to run my Docker containers. These are the raw instructions to get it running with Multipass: In the next few days I’ll update this post with a better guide, including screenshots and troubleshooting options.

Part II: ESLint for Markdown

ESLint can be used to validate files other than JavaScript. Markdown is a very good example, because you can apply Prettier rules (eg: ensure consistent formatting) and linting rules (eg: validate that titles are not duplicated). In this post I’m going to assume that you have ESLint+Prettier already working. Linting Markdown First, you need to […]

Part I: ESLint + Prettier

ESLint + Prettier Usually this setup raises two questions: Do you really need prettier and ESLint? Yes, you probably need both. They seems to solve the same problem (but they don’t) and certainly there is some overlap, but the goals are different. As the Prettier docs puts it: use Prettier to enforce a consistent formatting, […]

ESLint all the things!

ESlint is an awesome tool that allow us to keep a consistent code style across the code, enforce best practices and forbid dangerous patterns. It is usually used to lint JavaScript (or TypeScript) files, but it can do way more. Its plugin system gives us lots of ways to extend eslint, not only by adding […]

Reading yarn.lock

yarn.lock is the name of the lockfile used by yarn to track dependencies in a project. Although the file is autogenerated and not meant to be read by a human, the reality is that more often than not you’ll need to understand how the file is structured, to be able to resolve conflicts, provide feedback […]

Do we have to fix this problem now?

Something I’ve learned in my career is that is much more valuable to pick the wrong solution for the right problem, than the right solution for the wrong problem. It is very tempting to start thinking about solutions when presented with a problem. But it is more valuable to think about the problem first, without […]

De-duplicating yarn.lock

I have been using yarn since version 0.18. I’ve used it in experiments and toy projects, but also in very big projects with thousands of dependencies. It is a very nice tool with lots of great features. But not everything is peaches and cream. As you probably know, merges in yarn.lock are not always very […]