Skip to content

Conversation

@nunofgs
Copy link

@nunofgs nunofgs commented Dec 27, 2018

The lint-staged package implements a mechanism for running linters only against git changes staged for commit (rather than the entire codebase), as a pre-commit hook.

@nunofgs nunofgs requested a review from rplopes December 27, 2018 11:42
@nunofgs nunofgs force-pushed the enhancement/add-lint-staged branch from c3380f8 to b5f8089 Compare July 22, 2019 23:01
@waldyrious waldyrious force-pushed the enhancement/add-lint-staged branch 2 times, most recently from 4373a65 to 38ba78b Compare January 9, 2020 16:30
@satazor
Copy link
Contributor

satazor commented Feb 19, 2022

Perhaps the PR needs to be updated again since some time as passed, but what’s the reason it hasn’t been merged for all these years?

@satazor satazor force-pushed the enhancement/add-lint-staged branch from 38ba78b to e861416 Compare February 20, 2022 15:01
@satazor
Copy link
Contributor

satazor commented Feb 20, 2022

Updated the PR. @nunofgs can you give this a last review before merging? I've tested this out manually and is working as intended.

@satazor
Copy link
Contributor

satazor commented Feb 20, 2022

Unrelated to this PR but this line:

"precommit.silent": true,
is doing nothing. If we want silent mode on pre-commit, that line should be on every root project that uses uphold-scripts and not here.

@satazor
Copy link
Contributor

satazor commented Feb 20, 2022

Should we consider adding .ts to the list of patterns in the README or add a note there for TypeScript projects?

@satazor satazor force-pushed the enhancement/add-lint-staged branch from e861416 to eba61b9 Compare February 21, 2022 01:19
@nunofgs
Copy link
Author

nunofgs commented Feb 21, 2022

LGTM.

Currently, linting runs on every pre-commit for the whole project.
This can be slow for medium to large sized projects.
With lint-staged, linting runs only on git staged files.
@satazor satazor force-pushed the enhancement/add-lint-staged branch from eba61b9 to c815dda Compare February 21, 2022 13:19
@satazor satazor merged commit 7dc11f5 into master Feb 21, 2022
@satazor satazor deleted the enhancement/add-lint-staged branch February 21, 2022 13:20
@satazor
Copy link
Contributor

satazor commented Feb 21, 2022

🚀

@Americas
Copy link
Contributor

Perhaps the PR needs to be updated again since some time as passed, but what’s the reason it hasn’t been merged for all these years?

You should know the answer by heart right now 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants