Iiro Jäppinen

Results 336 comments of Iiro Jäppinen

Hello, thanks for the issue. Does your linter passing file A require B to also be valid? Currently I think unstaged files are not touched at all, but I guess...

It should be possible to stash everything, including unstaged files, but since the point of _lint-staged_ is to pass singular staged filenames to commands, it doesn't always have to work...

In this situation _lin-staged_ first stashes all unstaged changes, so I guess this behaviour is by design. You could try running with `lint-staged --no-stash` to see if that works better...

Hello, thanks for the issue. If you think based on my response I understood you wrong, please correct me. If your use-case is "_run a script before/after other commands when...

Thanks for the extra info, I now understand that multiple before/after commands should still run before/after all other configured tasks; it makes sense since their purpose is to do side-effects....

I believe this is an issue with the [mrm](https://github.com/sapegin/mrm/tree/master/packages/mrm-task-lint-staged) script, and not _lint-staged_ directly.

The easiest way might be to edit `package.json`'s `exports` field. 👍

The difference is: - `searchConfigs` takes into account all staged files and searches for all suitable configs. - `loadConfig` is used by the former to load a single config. Since...

Never mind, I totally mis-remembered, you should be able to try calling `searchConfigs` and it will either return a list of valid configs (or an empty array), or throw if...