ESLint Has a Free API — Here's How to Lint and Fix JavaScript Programmatically
typescript
dev.to
ESLint is the standard JavaScript linter with 200+ built-in rules and a rich plugin ecosystem. The new flat config format makes it simpler than ever. Installation npm install -D eslint npx eslint --init Flat Config (eslint.config.js) import js from "@eslint/js"; import tseslint from "typescript-eslint"; export default [ js.configs.recommended, ...tseslint.configs.recommended, { rules: { "no-unused-vars": "warn", "no-console": ["error", {