Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement alternate config lookup (#18742)
* feat: Look up config file from file being linted fixes #18385 * Fix ESLint class flag lookup * Fix up tests for config lookup * Add documentation for new config lookup flag * Clean up directory searching behavior * Read config files from starting from parent * Cover edge cases * Fix failing test * Fix test and linting errors * Remove .only from tests * Fix failing test * Incorporate TypeScript config files * Fix lint errors * Fix docs link * Fix broken link * Fix conflicts * Update lib/config/config-loader.js Co-authored-by: 唯然 <[email protected]> * Update lib/config/config-loader.js Co-authored-by: 唯然 <[email protected]> * Update docs/src/use/configure/configuration-files.md Co-authored-by: Francesco Trotta <[email protected]> * Add comment about CLI overrideConfig * Remove duplicate code * Fix error * add test with a deep subdir * Remove immediate child check * Fix edge cases * Clean up logic * Ensure foo*/*.js doesn't traverse directory foo when ignored * Ensure order of glob patterns doesn't matter * Fix edge cases * Don't normalize absolute path to posix * add tests with overrideConfig and no config file * Fix config override behavior * Fix lint issues * Update docs/src/use/configure/configuration-files.md Co-authored-by: Milos Djermanovic <[email protected]> * Update docs/src/use/configure/configuration-files.md Co-authored-by: Milos Djermanovic <[email protected]> * Update lib/config/config-loader.js Co-authored-by: Milos Djermanovic <[email protected]> * Update lib/config/config-loader.js Co-authored-by: Milos Djermanovic <[email protected]> * Update lib/config/config-loader.js Co-authored-by: Milos Djermanovic <[email protected]> * Update lib/config/config-loader.js Co-authored-by: Milos Djermanovic <[email protected]> * Update directory search to group by glob parent * Simplify lookup * Remove unused package --------- Co-authored-by: 唯然 <[email protected]> Co-authored-by: Francesco Trotta <[email protected]> Co-authored-by: Milos Djermanovic <[email protected]>
- Loading branch information