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
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ See [examples](#examples) and [configuration](#configuration) for more informati
92
92
93
93
## Changelog
94
94
95
-
See [Releases](https://github.com/okonet/lint-staged/releases).
95
+
See [Releases](https://github.com/lint-staged/lint-staged/releases).
96
96
97
97
### Migration
98
98
@@ -396,7 +396,7 @@ This will result in _lint-staged_ running `eslint file-1.js file-2.js`, when you
396
396
397
397
## Using JS configuration files
398
398
399
-
Writing the configuration file in JavaScript is the most powerful way to configure lint-staged (`lint-staged.config.js`, [similar](https://github.com/okonet/lint-staged#configuration), or passed via `--config`). From the configuration file, you can export either a single function or an object.
399
+
Writing the configuration file in JavaScript is the most powerful way to configure lint-staged (`lint-staged.config.js`, [similar](https://github.com/lint-staged/lint-staged#configuration), or passed via `--config`). From the configuration file, you can export either a single function or an object.
400
400
401
401
If the `exports` value is a function, it will receive an array of all staged filenames. You can then build your own matchers for the files and return a command string or an array of command strings. These strings are considered complete and should include the filename arguments, if wanted.
402
402
@@ -497,7 +497,7 @@ export default {
497
497
<details>
498
498
<summary>Click to expand</summary>
499
499
500
-
It's better to use the [function-based configuration (seen above)](https://github.com/okonet/lint-staged#example-export-a-function-to-build-your-own-matchers), if your use case is this.
500
+
It's better to use the [function-based configuration (seen above)](https://github.com/lint-staged/lint-staged#example-export-a-function-to-build-your-own-matchers), if your use case is this.
501
501
502
502
```js
503
503
// lint-staged.config.js
@@ -945,7 +945,7 @@ tl;dr: Yes, but the pattern should start with `../`.
945
945
946
946
By default, `lint-staged` executes tasks only on the files present inside the project folder(where `lint-staged` is installed and run from).
947
947
So this question is relevant _only_ when the project folder is a child folder inside the git repo.
948
-
In certain project setups, it might be desirable to bypass this restriction. See [#425](https://github.com/okonet/lint-staged/issues/425), [#487](https://github.com/okonet/lint-staged/issues/487) for more context.
948
+
In certain project setups, it might be desirable to bypass this restriction. See [#425](https://github.com/lint-staged/lint-staged/issues/425), [#487](https://github.com/lint-staged/lint-staged/issues/487) for more context.
949
949
950
950
`lint-staged` provides an escape hatch for the same(`>= v7.3.0`). For patterns that start with `../`, all the staged files are allowed to match against the pattern.
951
951
Note that patterns like `*.js`, `**/*.js` will still only match the project files and not any of the files in parent or sibling directories.
@@ -993,7 +993,7 @@ npx lint-staged --diff="$(git merge-base main HEAD)"
993
993
994
994
You should not use `ng lint` through _lint-staged_, because it's designed to lint an entire project. Instead, you can add `ng lint` to your git pre-commit hook the same way as you would run lint-staged.
995
995
996
-
See issue [!951](https://github.com/okonet/lint-staged/issues/951) for more details and possible workarounds.
996
+
See issue [!951](https://github.com/lint-staged/lint-staged/issues/951) for more details and possible workarounds.
997
997
998
998
</details>
999
999
@@ -1033,7 +1033,7 @@ export default {
1033
1033
1034
1034
In versions of ESLint > 7, [isPathIgnored](https://eslint.org/docs/developer-guide/nodejs-api#-eslintispathignoredfilepath) is an async function and now returns a promise. The code below can be used to reinstate the above functionality.
1035
1035
1036
-
Since [10.5.3](https://github.com/okonet/lint-staged/releases), any errors due to a bad ESLint config will come through to the console.
1036
+
Since [10.5.3](https://github.com/lint-staged/lint-staged/releases), any errors due to a bad ESLint config will come through to the console.
1037
1037
1038
1038
```js
1039
1039
import { ESLint } from'eslint'
@@ -1088,7 +1088,7 @@ When running `lint-staged` via Husky hooks, TypeScript may ignore `tsconfig.json
1088
1088
> **TS17004:** Cannot use JSX unless the '--jsx' flag is provided.
1089
1089
> **TS1056:** Accessors are only available when targeting ECMAScript 5 and higher.
1090
1090
1091
-
See issue [#825](https://github.com/okonet/lint-staged/issues/825) for more details.
1091
+
See issue [#825](https://github.com/lint-staged/lint-staged/issues/825) for more details.
0 commit comments