eslint

Featured

ESLint is the standard linting tool for JavaScript and TypeScript projects. It statically analyzes your code to find problems, enforce coding conventions, and catch bugs before they reach production. ESLint 9 introduced the flat config format, replacing the legacy `.eslintrc` system with a simpler, more composable `eslint.config.js` file. With a rich plugin ecosystem covering React, TypeScript, accessibility, and import ordering, ESLint is the backbone of code quality in modern web development.

Code & Development 213 stars 34 forks Updated 1 weeks ago Apache-2.0

Install

View on GitHub

Quality Score: 93/100

Stars 20%
78
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# ESLint — JavaScript and TypeScript Linting ESLint reads your source code, applies a set of rules, and reports problems ranging from stylistic inconsistencies to genuine bugs. It catches unused variables, missing return statements, inconsistent naming, accessibility violations, and hundreds of other issues that slip past even careful code review. This skill covers ESLint 9+ with the modern flat config format. If you're starting a new project or migrating from the legacy `.eslintrc` format, flat config is the way forward. ## Installing ESLint ESLint 9 ships as a single package. TypeScript and React support come from companion plugins. ```bash # Install ESLint and common plugins for a TypeScript React project npm install --save-dev eslint @eslint/js typescript-eslint eslint-plugin-react eslint-plugin-react-hooks ``` ## Flat Config Basics The flat config lives in `eslint.config.js` (or `.mjs`, `.ts`) at your project root. Instead of deeply nested JSON with `extends` and `overrides`, flat config uses an array of configuration objects. Each object applies to files matching its `files` glob pattern. ```javascript // eslint.config.js — Flat config for a TypeScript project import js from '@eslint/js'; import tseslint from 'typescript-eslint'; export default [ // Base JavaScript recommended rules js.configs.recommended, // TypeScript recommended rules (type-aware) ...tseslint.configs.recommended, // Custom configuration for source files { files: ['src/**/*....

Details

Author
TerminalSkills
Repository
TerminalSkills/skills
Created
9 months ago
Last Updated
1 weeks ago
Language
JavaScript
License
Apache-2.0

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category