lint-staged 12.3.0 → 12.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -103,14 +103,14 @@ Options:
|
|
|
103
103
|
|
|
104
104
|
- **`--allow-empty`**: By default, when linter tasks undo all staged changes, lint-staged will exit with an error and abort the commit. Use this flag to allow creating empty git commits.
|
|
105
105
|
- **`--concurrent [number|boolean]`**: Controls the concurrency of tasks being run by lint-staged. **NOTE**: This does NOT affect the concurrency of subtasks (they will always be run sequentially). Possible values are:
|
|
106
|
-
- uses [debug](https://github.com/visionmedia/debug) internally to log additional information about staged files, commands being executed, location of binaries, etc. Debug logs, which are automatically enabled by passing the flag, can also be enabled by setting the environment variable `$DEBUG` to `lint-staged*`.
|
|
107
|
-
- uses [`verbose` renderer](https://github.com/SamVerschueren/listr-verbose-renderer) for `listr`; this causes serial, uncoloured output to the terminal, instead of the default (beautified, dynamic) output.
|
|
108
106
|
- `false`: Run all tasks serially
|
|
109
107
|
- `true` (default) : _Infinite_ concurrency. Runs as many tasks in parallel as possible.
|
|
110
108
|
- `{number}`: Run the specified number of tasks in parallel, where `1` is equivalent to `false`.
|
|
111
109
|
- **`--config [path]`**: Manually specify a path to a config file or npm package name. Note: when used, lint-staged won't perform the config file search and will print an error if the specified file cannot be found. If '-' is provided as the filename then the config will be read from stdin, allowing piping in the config like `cat my-config.json | npx lint-staged --config -`.
|
|
112
110
|
- **`--cwd [path]`**: By default tasks run in the current working directory. Use the `--cwd some/directory` to override this. The path can be absolute or relative to the current working directory.
|
|
113
111
|
- **`--debug`**: Run in debug mode. When set, it does the following:
|
|
112
|
+
- uses [debug](https://github.com/visionmedia/debug) internally to log additional information about staged files, commands being executed, location of binaries, etc. Debug logs, which are automatically enabled by passing the flag, can also be enabled by setting the environment variable `$DEBUG` to `lint-staged*`.
|
|
113
|
+
- uses [`verbose` renderer](https://github.com/SamVerschueren/listr-verbose-renderer) for `listr`; this causes serial, uncoloured output to the terminal, instead of the default (beautified, dynamic) output.
|
|
114
114
|
- **`--no-stash`**: By default a backup stash will be created before running the tasks, and all task modifications will be reverted in case of an error. This option will disable creating the stash, and instead leave all modifications in the index when aborting the commit.
|
|
115
115
|
- **`--quiet`**: Supress all CLI output, except from tasks.
|
|
116
116
|
- **`--relative`**: Pass filepaths relative to `process.cwd()` (where `lint-staged` runs) to tasks. Default is `false`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lint-staged",
|
|
3
|
-
"version": "12.3.
|
|
3
|
+
"version": "12.3.1",
|
|
4
4
|
"description": "Lint files staged by git",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/okonet/lint-staged",
|
|
@@ -35,28 +35,28 @@
|
|
|
35
35
|
"debug": "^4.3.3",
|
|
36
36
|
"execa": "^5.1.1",
|
|
37
37
|
"lilconfig": "2.0.4",
|
|
38
|
-
"listr2": "^
|
|
38
|
+
"listr2": "^4.0.1",
|
|
39
39
|
"micromatch": "^4.0.4",
|
|
40
40
|
"normalize-path": "^3.0.0",
|
|
41
|
-
"object-inspect": "^1.
|
|
41
|
+
"object-inspect": "^1.12.0",
|
|
42
42
|
"string-argv": "^0.3.1",
|
|
43
43
|
"supports-color": "^9.2.1",
|
|
44
44
|
"yaml": "^1.10.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@babel/core": "^7.16.
|
|
47
|
+
"@babel/core": "^7.16.12",
|
|
48
48
|
"@babel/eslint-parser": "^7.16.5",
|
|
49
|
-
"@babel/preset-env": "^7.16.
|
|
50
|
-
"babel-jest": "^27.4.
|
|
49
|
+
"@babel/preset-env": "^7.16.11",
|
|
50
|
+
"babel-jest": "^27.4.6",
|
|
51
51
|
"consolemock": "^1.1.0",
|
|
52
|
-
"eslint": "^8.
|
|
52
|
+
"eslint": "^8.7.0",
|
|
53
53
|
"eslint-config-prettier": "^8.3.0",
|
|
54
|
-
"eslint-plugin-import": "^2.25.
|
|
54
|
+
"eslint-plugin-import": "^2.25.4",
|
|
55
55
|
"eslint-plugin-node": "^11.1.0",
|
|
56
56
|
"eslint-plugin-prettier": "^4.0.0",
|
|
57
57
|
"fs-extra": "^10.0.0",
|
|
58
58
|
"husky": "^7.0.4",
|
|
59
|
-
"jest": "^27.4.
|
|
59
|
+
"jest": "^27.4.7",
|
|
60
60
|
"jest-snapshot-serializer-ansi": "^1.0.0",
|
|
61
61
|
"prettier": "^2.5.1"
|
|
62
62
|
},
|