You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: restore functionality of parent globs for a single configuration file
Parent globs like `../*.js` were broken when introducing support
for multiple configuration files in version 12.2.0. This is because
lint-staged incorrectly grouped all files inside a single
configuration's base directory to belong to that config, meaning
files can only match a single configuration.
This has now been fixed so that when a configuration has a
parent glob, it will receive all staged files. Currently this means
there can only be a single configuration file containing a parent
glob, because all files will belong to that config.
This aims to restore the previous behaviour, where only a
single configuration file was supported. It shouldn't be necessary
to use parent globs anymore, because they can be replaced by
using multiple configuration files instead.
0 commit comments