update lint-staged to v10 for consistency #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Last version available of lint-staged is v10. On that major release is not necessary anymore to add the "git add" step, and actually has to be removed in case you got it from a previous version.
The course repo itself is fine, as it's using v9 with "git add" step. But then when someone following proper lesson on Testing Javascript installs lint-staged dependency, they'll get v10 and the config steps are not consistent anymore, which could cause them having issues with pre-commit hook.
This PR is updating lint-staged and its config to mirror what people following the course will see, but there are 2 things that must be updated additionally: