Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: lint-staged/lint-staged
base: v7.3.0
Choose a base ref
...
head repository: lint-staged/lint-staged
compare: v8.0.0
Choose a head ref
  • 5 commits
  • 19 files changed
  • 4 contributors

Commits on Sep 23, 2018

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

Commits on Sep 29, 2018

  1. docs: Add SurviveJS link

    okonet committed Sep 29, 2018
    Copy the full SHA
    bcd0af4 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2018

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

Commits on Oct 21, 2018

  1. chore: upgrade to jest 23 (#507)

    SimenB authored and okonet committed Oct 21, 2018
    Copy the full SHA
    e6a6ec6 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2018

  1. feat: Add support for partially staged files (#75)

    Introduces support for partially staged files with the following algorithm:
    
    1. Before running linters, check if there are partially stated files (i.e. both with changes in commit index and the working copy)
    2. Stash and remove from the working copy all files that aren't in the commit index
    3. Execute commands (linters and formatters) on these files
    4. Add formatters changes to index (separate task in the config)
    5. Restore the stashed working copy state if all linters exit with zero code (i.e. success). If there are errors running linters, restore stashed working copy.
    6. Compare new commit index and working copy and apply as many formatting changes to working copy as possible. If there are conflicting hunks, drop formatter's changes. User modifications that were stashed should always take precedence over formatters.
    
    Closes #62
    
    BREAKING CHANGE: Node >= 8.6 is required
    okonet authored and Andrey Okonetchnikov committed Oct 29, 2018
    Copy the full SHA
    f82443c View commit details
    Browse the repository at this point in the history