You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ The latest versions of `lint-staged` require Node.js v6 or newer. (Versions of `
6
6
7
7
## Why
8
8
9
-
Linting makes more sense when running before committing your code. By doing that you can ensure no errors are going into repository and enforce code style. But running a lint process on a whole project is slow and linting results can be irrelevant. Ultimately you only want to lint files that will be committed.
9
+
Linting makes more sense when run before committing your code. By doing so you can ensure no errors go into the repository and enforce code style. But running a lint process on a whole project is slow and linting results can be irrelevant. Ultimately you only want to lint files that will be committed.
10
10
11
11
This project contains a script that will run arbitrary shell tasks with a list of staged files as an argument, filtered by a specified glob pattern.
12
12
@@ -39,7 +39,7 @@ This project contains a script that will run arbitrary shell tasks with a list o
39
39
40
40
Now change a few files, `git add` some of them to your commit and try to `git commit` them.
41
41
42
-
And this is how it looks like in action:
42
+
This is how it looks in action:
43
43
44
44
<palign="center">
45
45
<img src="./screenshots/lint-staged-prettier.gif" alt="lint-staged with prettier example"
***`--config [path]`**: This can be used to manually specify the `lint-staged` config file location. However, if the specified file cannot be found, it will error out instead of performing the usual search. You may pass a npm package name for configuration also.
80
80
***`--debug`**: Enabling the debug mode does the following:
81
-
*`lint-staged` uses the [debug](https://github.com/visionmedia/debug) module internally to log 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*`.
81
+
*`lint-staged` uses the [debug](https://github.com/visionmedia/debug) module internally to log 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*`.
82
82
* Use the [`verbose` renderer](https://github.com/SamVerschueren/listr-verbose-renderer) for `listr`.
83
83
* Do not pass `--silent` to npm scripts.
84
84
@@ -125,7 +125,7 @@ So, considering you did `git add file1.ext file2.ext`, lint-staged will run the
125
125
126
126
### Advanced config format
127
127
128
-
To extend and customise lint-staged, avanced options are available. To use this options the format should be as the following:
128
+
To extend and customise lint-staged, advanced options are available. To use these options the format should be as the following:
0 commit comments