Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
feat: add ability to use function as config #913
This PR adds an ability to use a function as config. This function will get an array of all staged files as parameter which can be used with own globs. Currently, we need to pass such function as value of
This can be further optimized by not using
@@ Coverage Diff @@ ## master #913 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 17 18 +1 Lines 602 608 +6 Branches 142 143 +1 ========================================= + Hits 602 608 +6
I think the readme could be more clear that you can either export a single function that receives all matched files, or then an object of globs, where each key can be a function (that receives only those matches), string or array of strings.
Otherwise it's good to go IMO!