Adding eslint and Auto-Fixing an Existing TypeScript Project

from blog code.dblock.org | tech blog, | ↗ original
In opensearch-api-specification#260 I added eslint, but had a hard time finding a cookbook for auto-fixing specific violations. Here it is. First, I followed the getting started with eslint guide, which essentially tells you to run npm init @eslint/config@latest. Rewrite eslint.config.mjs using the newer flat configuration format, making sure...