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

fix: do not ignore incorrect patterns with braces of single value #992

Merged
merged 23 commits into from Aug 6, 2021

Commits on Jul 25, 2021

  1. refactor: use arrow function

    iiroj committed Jul 25, 2021
    Copy the full SHA
    e093494 View commit details
    Browse the repository at this point in the history
  2. fix: correctly handle incorrect patterns with braces of only single v…

    …alue
    
    Technically brace patterns like `*.{js}` are invalid because braces should
    always contain at least one comma or a sequence,
    for example `*.{js,ts}` or `file{1..10}.js`.
    
    The `micromatch` library used to match patterns to files will silently ignore
    such invalid braces and thus lead to the pattern always matching zero files.
    This is a unintuitive, so lint-staged should normalize such cases
    by simply removing the unnecessary braces before matching files.
    iiroj committed Jul 25, 2021
    Copy the full SHA
    e6c62de View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    cf6acdc View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    799f55a View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    80fb012 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    40682e9 View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    f527a25 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    dac0151 View commit details
    Browse the repository at this point in the history
  9. Copy the full SHA
    6d381a4 View commit details
    Browse the repository at this point in the history
  10. Copy the full SHA
    995913b View commit details
    Browse the repository at this point in the history
  11. Copy the full SHA
    a167697 View commit details
    Browse the repository at this point in the history
  12. Copy the full SHA
    7dbaa29 View commit details
    Browse the repository at this point in the history
  13. Copy the full SHA
    f538361 View commit details
    Browse the repository at this point in the history
  14. Copy the full SHA
    23ef46b View commit details
    Browse the repository at this point in the history
  15. test: add missing assertions

    iiroj committed Jul 25, 2021
    Copy the full SHA
    665ac50 View commit details
    Browse the repository at this point in the history
  16. Copy the full SHA
    640e58e View commit details
    Browse the repository at this point in the history
  17. Copy the full SHA
    51a63ea View commit details
    Browse the repository at this point in the history
  18. Copy the full SHA
    e195b6a View commit details
    Browse the repository at this point in the history
  19. Copy the full SHA
    87219a5 View commit details
    Browse the repository at this point in the history
  20. Copy the full SHA
    089e683 View commit details
    Browse the repository at this point in the history
  21. refactor: clean up code

    iiroj committed Jul 25, 2021
    Copy the full SHA
    2bd598f View commit details
    Browse the repository at this point in the history
  22. test: add some more tests

    iiroj committed Jul 25, 2021
    Copy the full SHA
    4ae8143 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2021

  1. Copy the full SHA
    c9a24ce View commit details
    Browse the repository at this point in the history