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

feat: allow list of files in exclude option #772

Merged

Conversation

mrexox
Copy link
Member

@mrexox mrexox commented Jul 17, 2024

Closes #717

Add support for the file list in exclude option.

pre-commit:
  commands:
    lint:
      run: yarn lint {staged_files}
      exclude:
        - vendor/some-file.js
        - package.json

⚡ Summary

  • Allow using a list of files in the exclude option
  • Support regexp too
  • Update docs
  • Add integration tests

@mrexox mrexox marked this pull request as ready for review July 17, 2024 08:53
@mrexox
Copy link
Member Author

mrexox commented Jul 17, 2024

I am going to release this PR tomorrow with a new lefthook version 1.7.3

@mrexox mrexox merged commit e1caf3c into evilmartians:master Jul 18, 2024
16 of 19 checks passed
@mrexox mrexox deleted the feat/allow-list-of-files-in-exclude-option branch July 18, 2024 07:30
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.

exclude configuration as array
1 participant