lint-staged

🚫💩 — Run linters on git staged files

MIT License

Downloads
43M
Stars
12.9K
Committers
143

Bot releases are hidden (Show)

lint-staged - v6.0.0

Published by okonet almost 7 years ago

6.0.0 (2017-12-01)

Features

  • Add debug mode, deprecate verbose option (#344) (8f214f0)

BREAKING CHANGES

  • verbose config option has been deprecated and is superseded
    by the command line option --debug.
lint-staged - v5.0.0

Published by okonet almost 7 years ago

5.0.0 (2017-11-11)

Features

  • Remove gitDir option and resolve it automatically (#327) (0ed5135), closes #271

BREAKING CHANGES

  • gitDir option deprecated and will be ignored. Additionally, glob patterns for linters should not be relative to the git root directory.

Consider a project with the following file structure:

`-- packages
    |-- prj
    |   |-- package.json
    |   |-- src
    |   |   `-- index.js
    |   `-- yarn.lock
    `-- prj-2
        `-- file

With [email protected], the config would need to be something like this:

gitDir: ../..
linters:
  packages/prj/src/*.js:
    - eslint --fix
    - git add

With lint-staged@5, this simplifies to:

linters:
  src/*.js:
    - eslint --fix
    - git add

@@ -1,5 +1,4 @@
-gitDir: ../..
 linters:
-  packages/prj/src/*.js:
+  src/*.js:
     - eslint --fix
     - git add
lint-staged - v4.3.0

Published by okonet about 7 years ago

4.3.0 (2017-10-18)

Features

  • Allow config to be provided via command-line (#304) (54809ae)
lint-staged - v4.2.3

Published by okonet about 7 years ago

4.2.3 (2017-09-25)

Bug Fixes

  • findBin: Add separator before npm args (#297) (065f362)
lint-staged - v4.2.2

Published by okonet about 7 years ago

4.2.2 (2017-09-22)

Bug Fixes

  • findBin: Resolve package script with args (#295) (1dc3bd6)
lint-staged - v4.2.1

Published by okonet about 7 years ago

4.2.1 (2017-09-15)

Bug Fixes

lint-staged - v4.2.0

Published by okonet about 7 years ago

4.2.0 (2017-09-15)

Features

  • Print friendlier error if config is missing (#281) (30fa594)
lint-staged - v4.1.3

Published by okonet about 7 years ago

4.1.3 (2017-09-07)

Bug Fixes

  • Unicode symbols compatibility on Windows (#248) (49b11e4)
lint-staged - v4.1.2

Published by okonet about 7 years ago

4.1.2 (2017-09-06)

Bug Fixes

  • Handle the case when staged-git-files errors properly (#267) (a8a585a), closes #264
lint-staged - v4.1.1

Published by okonet about 7 years ago

4.1.1 (2017-09-06)

Bug Fixes

  • Use lodash has to check config keys presence (#265) (c0287e6), closes #263
lint-staged - v4.1.0

Published by okonet about 7 years ago

4.1.0 (2017-09-04)

Features

lint-staged - v4.0.4

Published by okonet about 7 years ago

<a name"4.0.4">

4.0.4 (2017-08-24)

Bug Fixes

  • Disable concurrent sub task execution by default (#229) (48c8c6ff, closes #225)
lint-staged - v4.0.3

Published by okonet about 7 years ago

<a name"4.0.3">

4.0.3 (2017-08-06)

Bug Fixes

  • package: update execa to version 0.8.0 (#222) (27adf8bb)
lint-staged - v4.0.2

Published by okonet over 7 years ago

<a name"4.0.2">

4.0.2 (2017-07-17)

Bug Fixes

lint-staged - v4.0.1

Published by okonet over 7 years ago

<a name"4.0.1">

4.0.1 (2017-07-06)

Bug Fixes

  • Bail on fatal errors (#208) (ca85d82a)
lint-staged - v4.0.0

Published by okonet over 7 years ago

<a name"4.0.0">

4.0.0 (2017-06-18)

Bug Fixes

  • Skip '--' argument for non-npm commands (#196) (ad265664, closes #195)

Breaking Changes

This might affect existing setups which depend on the -- argument.
(ad265664)

lint-staged - v3.6.1

Published by okonet over 7 years ago

<a name"3.6.1">

3.6.1 (2017-06-10)

Bug Fixes

  • package: update execa to version 0.7.0 (#187) (4bfe017d)
lint-staged - v3.6.0

Published by okonet over 7 years ago

<a name"3.6.0">

3.6.0 (2017-06-01)

Features

  • Add advanced option globOptions to customise minimatch (#179) (c5b9804b, closes #173)
lint-staged - v3.5.1

Published by okonet over 7 years ago

<a name"3.5.1">

3.5.1 (2017-05-29)

Bug Fixes

  • gitDir: Fix for checking if task contains git.exe on Windows (#178) (4c600178)
lint-staged - v3.5.0

Published by okonet over 7 years ago

<a name"3.5.0">

3.5.0 (2017-05-25)

Features

  • Run linters with configurable concurrency (#149) (79ad8b3f, closes #147)