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 […]