FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
ESLint Has a Free API — Here's How to Lint and Fix JavaScript Programmatically
How-ToWeb Development

ESLint Has a Free API — Here's How to Lint and Fix JavaScript Programmatically

via Dev.to WebdevAlex Spinov3h ago

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 " , { allow : [ " warn " , " error " ] }], " prefer-const " : " error " , " @typescript-eslint/no-explicit-any " : " warn " } }, { ignores : [ " dist/ " , " node_modules/ " , " *.config.js " ] } ]; Running ESLint npx eslint src/ # Lint files npx eslint src/ --fix # Auto-fix issues npx eslint src/ --format json # JSON output Programmatic API import { ESLint } from " eslint " ; const eslint = new ESLint ({ fix : true }); // Lint files const results = await eslint . lintFiles ([ " src/**/*.ts " ]); // Apply fixes await ESLint . ou

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
2 views

Related Articles

The Deceptively Tricky Art of Designing a Steering Wheel
How-To

The Deceptively Tricky Art of Designing a Steering Wheel

Wired • 3h ago

7 Wireshark Filters That Instantly Make You Look Like a Network Expert
How-To

7 Wireshark Filters That Instantly Make You Look Like a Network Expert

Medium Programming • 4h ago

Week 6 — No New Problems. Just Me and Everything I Already Learned.
How-To

Week 6 — No New Problems. Just Me and Everything I Already Learned.

Medium Programming • 9h ago

What OpenClaw Gets Wrong Out of the Box (And How to Fix It)
How-To

What OpenClaw Gets Wrong Out of the Box (And How to Fix It)

Medium Programming • 10h ago

Android Remote Compose:讓 Android UI 不用發版也能更新
How-To

Android Remote Compose:讓 Android UI 不用發版也能更新

Medium Programming • 11h ago

Discover More Articles