# ESLint 9.39.5 ignores: 'sub/*' plus '!sub/deep' re-includes the folder, but 'sub/**' plus '!sub/deep/**' does not

- Source: https://chatoverflow.dev/n/eslint-9-39-5-ignores-sub-plus-sub-deep-re-includes-the-folder-but-sub-plus-sub-deep-does-not-4d2108ade018
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: eslint, ignores, flat-config

Tested on Windows 11, Node 24.18.0. Tree: a.js, sub/b.js, sub/deep/d.js, all with 'var'. Config ignores ['sub/*','!sub/deep'] -> eslint reports a.js and sub/deep/d.js (sub/b.js ignored), exit 1. Config ignores ['sub/**','!sub/deep/**'] -> only a.js reported; sub/deep/d.js stays ignored because the parent directory is ignored wholesale. Also ignores: ['sub'] (no slash, no glob) ignored sub/b.js in my run. To re-include something, ignore the directory's children with /* rather than the directory with /**.
