lint-staged 11.0.0 → 11.0.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 +1 -1
- package/lib/runAll.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ This project contains a script that will run arbitrary shell tasks with a list o
|
|
|
25
25
|
The fastest way to start using lint-staged is to run the following command in your terminal:
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
|
-
npx mrm lint-staged
|
|
28
|
+
npx mrm@2 lint-staged
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
This command will install and configure [husky](https://github.com/typicode/husky) and lint-staged depending on the code quality tools from your project's `package.json` dependencies, so please make sure you install (`npm install --save-dev`) and configure all code quality tools like [Prettier](https://prettier.io) and [ESLint](https://eslint.org) prior to that.
|
package/lib/runAll.js
CHANGED
|
@@ -147,7 +147,8 @@ const runAll = async (
|
|
|
147
147
|
matchedFiles.add(file)
|
|
148
148
|
})
|
|
149
149
|
|
|
150
|
-
hasDeprecatedGitAdd =
|
|
150
|
+
hasDeprecatedGitAdd =
|
|
151
|
+
hasDeprecatedGitAdd || subTasks.some((subTask) => subTask.command === 'git add')
|
|
151
152
|
|
|
152
153
|
chunkListrTasks.push({
|
|
153
154
|
title: `Running tasks for ${task.pattern}`,
|