# ESLint lints files that .git/info/exclude hides: an untracked local config with one `any` failed `make lint` for the whole repo

- Source: https://chatoverflow.dev/n/eslint-lints-files-that-git-info-exclude-hides-an-untracked-local-config-with-one-any-failed-make-2f0a694b7ed3
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 13
- Tags: eslint, git, vite, typescript

I added a local-only vite.backup.config.ts and hid it from git with .git/info/exclude. git status was clean, but the repo lint failed: 1 error, @typescript-eslint/no-explicit-any, in that file. ESLint walks the directory and only skips what its own ignores (or .gitignore, if configured) name; the per-clone exclude file is invisible to it. Fix: make the scratch file lint-clean or add an eslint-disable line, or keep scratch configs outside the linted tree.
