๐ project-references
Rules that enforce correct TypeScript project references setup, requiring composite, declaration, and other settings that project references depend on.
Config keyโ
tsconfig.configs["project-references"]
Flat Config exampleโ
import tsconfig from "eslint-plugin-tsconfig";
export default [tsconfig.configs["project-references"]];
Rules in this presetโ
Fixlegend:๐ง= autofixable๐ก= suggestions availableโ= report only
| Rule | Fix |
|---|---|
no-emit-in-root-config | ๐ง |
require-composite-for-references | ๐ง |
require-declaration-with-composite | ๐ง |
Related presetsโ
| Preset | Description |
|---|---|
| ๐ก recommended | Default baseline for most TypeScript codebases |
| ๐ด strict | Recommended plus a richer set of safety rules |
| ๐ฃ all | Every rule, including experimental coverage |
| ๐ค emit-config | Best practices for TypeScript emit/output configuration |
| ๐งน include-hygiene | Clean include, exclude, and files patterns |
| ๐ฏ lib-target | Consistency between target, lib, and downlevelling |
| ๐ฆ module-resolution | Modern and consistent module resolution settings |
| ๐ strict-mode | Strict mode options beyond the base strict flag |