-
-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
51 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters