The current Stylelint task does not add files to the command if run outside of a git commit. This results in an error because stylelint expects a list of files or a glob.
This pull request changes the behaviour of Stylelint task to the one of ESLint, to fix the error.
Taken a look at the cli options of stylelint and agree that always adding the files is the best option for the tool at this moment.
Thanks for pointing it out!
The current Stylelint task does not add files to the command if run outside of a git commit. This results in an error because stylelint expects a list of files or a glob.
This pull request changes the behaviour of Stylelint task to the one of ESLint, to fix the error.
There was some discussion about the current implementation in https://github.com/phpro/grumphp/pull/904#discussion_r646086110. But i couldn't find a way to specify files or a globs in the stylelint config file.