Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added CLI option to enable and clear the cache 🧣 #17

Merged
merged 2 commits into from
Jul 30, 2024
Merged

Added CLI option to enable and clear the cache 🧣 #17

merged 2 commits into from
Jul 30, 2024

Conversation

01taylop
Copy link
Owner

@01taylop 01taylop commented Jul 24, 2024

Details

What have you changed?

  • Added new CLI options; one to enable cacheing and another to clear the cache.

Why are you making these changes?

  • Both eslint and stylelint support a cache which can be used to only lint files which have changed. This can speed up the linting process which is important when lint tasks are run in pre-commit hooks.

    Having an option to clear the cache is also important. Although users could just delete the cache files, doing so via the CLI is easy and acts as a reminder that linting with the cache enabled may have different results than running in a deployment pipeline where no cache is available.

01taylop added 2 commits July 24, 2024 22:44
Both eslint and stylelint support a cache which can be used to only
lint files which have changed. This can speed up the linting process
which is important when lint tasks are run in pre-commit hooks.

Having an option to clear the cache is also important. Although users
could just delete the cache files, doing so via the CLI is easy and
acts as a reminder that linting with the cache enabled may have
different results than running in a deployment pipeline where no cache
is available.
@01taylop 01taylop marked this pull request as ready for review July 30, 2024 10:00
@01taylop 01taylop merged commit cd64375 into main Jul 30, 2024
5 checks passed
@01taylop 01taylop deleted the cache branch July 30, 2024 10:20
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.

1 participant