# config

Configuration-file detection and parsing for the common config formats encountered in JavaScript/TypeScript projects.

[`detectConfigs`](https://www.hyperfrontend.dev/docs/libraries/project-scope/project/config/#api-detectConfigs) scans a project for the configuration files registered in [`CONFIG_PATTERNS`](https://www.hyperfrontend.dev/docs/libraries/project-scope/project/config/#api-CONFIG_PATTERNS) (TypeScript, ESLint, Prettier, Vite, Webpack, Babel, Jest, Vitest, Tailwind, PostCSS, etc.) and returns a `DetectedConfig[]` with the file path, type, and detection metadata. `findConfigFile(type)` is the targeted lookup for a single config. [`parseConfig`](https://www.hyperfrontend.dev/docs/libraries/project-scope/project/config/#api-parseConfig) (plus the [`parseJsonConfig`](https://www.hyperfrontend.dev/docs/libraries/project-scope/project/config/#api-parseJsonConfig) / [`parseYamlConfig`](https://www.hyperfrontend.dev/docs/libraries/project-scope/project/config/#api-parseYamlConfig) specializations) reads and parses the located file into a typed [`ParsedConfig`](https://www.hyperfrontend.dev/docs/libraries/project-scope/project/config/#api-ParsedConfig). The [`CONFIG_PATTERNS`](https://www.hyperfrontend.dev/docs/libraries/project-scope/project/config/#api-CONFIG_PATTERNS) registry is exposed so consumers can extend or filter what counts as a config without forking the heuristic.

---

Canonical page: https://www.hyperfrontend.dev/docs/libraries/project-scope/project/config/
This file: https://www.hyperfrontend.dev/docs/libraries/project-scope/project/config.md
Documentation index: https://www.hyperfrontend.dev/llms.txt
