Skip to content

Releases: lint-staged/lint-staged

v6.1.0

26 Jan 06:48
Compare
Choose a tag to compare

6.1.0 (2018-01-26)

Features

v6.0.1

19 Jan 10:49
Compare
Choose a tag to compare

6.0.1 (2018-01-19)

Bug Fixes

  • package: update cosmiconfig to version 4.0.0 (80596c3)

v6.0.0

01 Dec 04:29
8f214f0
Compare
Choose a tag to compare

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.

v5.0.0

11 Nov 08:24
Compare
Choose a tag to compare

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 lint-staged@4.3.0, 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
diff view
@@ -1,5 +1,4 @@
-gitDir: ../..
 linters:
-  packages/prj/src/*.js:
+  src/*.js:
     - eslint --fix
     - git add

v4.3.0

18 Oct 14:25
Compare
Choose a tag to compare

4.3.0 (2017-10-18)

Features

  • Allow config to be provided via command-line (#304) (54809ae)

v4.2.3

25 Sep 04:14
Compare
Choose a tag to compare

4.2.3 (2017-09-25)

Bug Fixes

  • findBin: Add separator before npm args (#297) (065f362)

v4.2.2

22 Sep 08:30
Compare
Choose a tag to compare

4.2.2 (2017-09-22)

Bug Fixes

  • findBin: Resolve package script with args (#295) (1dc3bd6)

v4.2.1

15 Sep 13:31
Compare
Choose a tag to compare

4.2.1 (2017-09-15)

Bug Fixes

v4.2.0

15 Sep 12:47
Compare
Choose a tag to compare

4.2.0 (2017-09-15)

Features

  • Print friendlier error if config is missing (#281) (30fa594)

v4.1.3

07 Sep 07:28
Compare
Choose a tag to compare

4.1.3 (2017-09-07)

Bug Fixes

  • Unicode symbols compatibility on Windows (#248) (49b11e4)