Skip to content

JavaScript Linting Tools

General Linting Tools

  • ESLint – The most widely used JavaScript linter, highly configurable, and supports custom rules, plugins, and integration with TypeScript.
  • JSHint – A simpler alternative to ESLint, focusing on detecting errors but with less flexibility.
  • JSLint – Created by Douglas Crockford, the author of JSON, but is opinionated and less flexible than ESLint.

Code Formatting & Style Checkers

  • Prettier – An opinionated code formatter that enforces consistent style but doesn’t enforce code quality rules like ESLint.
  • StandardJS – A zero-config linter that enforces a specific coding style, built on top of ESLint.

TypeScript-Specific Linters

  • TSLint (Deprecated) – Used for TypeScript but has been replaced by ESLint with TypeScript plugins.
  • ESLint with @typescript-eslint – The recommended approach for linting TypeScript.

Security & Best Practice Linters

  • SonarLint – Helps detect code smells, security vulnerabilities, and bugs.
  • Node Security Platform (nsp) (Deprecated) – Used for identifying security vulnerabilities in Node.js applications.
  • Snyk – A security-focused tool that checks for known vulnerabilities in dependencies.

Accessibility Linters

Framework-Specific Linters