Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

🤖 Artificial Intelligence
☁️ Cloud and Infrastructure
💾 Data and Databases
💼 Professional Skills
🎯 Programming and Development
🔒 Security and Networking
📚 Specialized Topics
DATA_AND_DATABASES
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
© 2026 CheatGrid™. All rights reserved.
Privacy PolicyTerms of UseAboutContact

ESLint Flat Config and Modern JavaScript Linting Cheat Sheet

ESLint Flat Config and Modern JavaScript Linting Cheat Sheet

Back to Developer ToolsUpdated 2026-05-16

ESLint is a pluggable static analysis tool for JavaScript and TypeScript that identifies and fixes code quality issues at build time. Flat config (eslint.config.js), introduced in ESLint v8.21.0 and made default in v9.0.0, replaces the legacy .eslintrc format with a simpler, more flexible array-based configuration that uses native JavaScript imports. ESLint v10 (released February 2026) removes legacy config support entirely, requiring Node.js 20+ and eliminating .eslintrc compatibility. The flat config system unifies configuration through programmatic composition, eliminating the complexity of cascading .eslintrc files, extends string resolution, and environment-based globals — making linting faster, more predictable, and easier to debug with tools like the official Config Inspector.

What This Cheat Sheet Covers

This topic spans 15 focused tables and 108 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Flat Config FundamentalsTable 3: Language Options and GlobalsTable 4: Files, Ignores, and Glob PatternsTable 5: Plugins and ParsersTable 6: TypeScript-ESLint IntegrationTable 7: Prettier IntegrationTable 8: Auto-fix and SuggestionsTable 9: Performance OptimizationTable 10: CLI Options and CommandsTable 11: Inline Configuration CommentsTable 12: Migration from Legacy ConfigTable 13: Popular Plugin CollectionsTable 14: Custom Rules DevelopmentTable 15: Monorepo and Multi-Config SetupTable 16: CI/CD and Pre-commit Integration

Table 1: Flat Config Fundamentals

ConceptExampleDescription
eslint.config.js
export default [<br> { rules: { "no-unused-vars": "error" } }<br>];
Default flat config filename in project root; exports an array of config objects applied sequentially.
Config object
{<br> files: ["src/**/*.js"],<br> rules: { semi: "error" }<br>}
Single configuration unit with files, ignores, rules, languageOptions, plugins, and linterOptions keys.
files pattern
files: ["**/*.ts", "!**/*.test.ts"]
Glob pattern array specifying which files the config applies to; relative to config file location.
ignores pattern
{ ignores: ["dist/**", "node_modules/**"] }
Global ignore when used alone; local ignore when combined with other keys in the same object.
Config composition
export default [<br> js.configs.recommended,<br> myConfig,<br> { rules: { ... } }<br>];
Configs merge left to right; later configs override earlier ones for matching files.

More in Developer Tools

  • Docker Desktop for Developers Cheat Sheet
  • Figma Design and Prototyping Cheat Sheet
  • AI-LLM Code Generation Cheat Sheet
  • File Formats Cheat Sheet
  • Notepad++ Cheat Sheet
  • Sublime Text Cheat Sheet
View all 55 topics in Developer Tools