Configuration
Learn how to configure ESLint React for your project
ESLint React is highly configurable. Depending on your needs, you can customize the analyzer's behavior, align the linting process with your project's TypeScript configuration, or even write custom rules specific to your codebase.
Explore the following sections to learn more about the configuration options available:
Configure Analyzer
Learn how to customize the static analysis behavior of ESLint React, such as specifying the React version, custom import sources, or React Compiler modes.
Configure Project Rules
Build custom ESLint rules tailored to your project's specific requirements using the @eslint-react/kit utility module.
Configure Project Config
Understand how ESLint React uses your project's configuration files (like tsconfig.json) to determine the JSX transform and retrieve type information.
Resources
- AST Explorer - A tool for exploring the abstract syntax tree (AST) of JavaScript code, which is essential for writing custom rules.
- ESLint Developer Guide - Official ESLint documentation for creating custom rules.
- Using the TypeScript Compiler API - TypeScript compiler API documentation for working with type information in custom rules.