Skip to content

Commit 1be4720

Browse files
committed
Update doc due to review.
1 parent c739798 commit 1be4720

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/rules/no-extraneous-dependencies.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ If you are using JavaScript configuration (e.g., `.eslintrc.js`), then you can u
3131
"import/no-extraneous-dependencies": ["error", {"devDependencies": /test|spec/}]
3232
```
3333

34-
When using a regular expression the result of running [`test`] against the name of the file being linted is used as the boolean value. For example, the above configurations will allow the import of `devDependencies` in files whose names include `test` or `spec`.
34+
When using a regular expression, the setting will be activated if the name of the file being linted matches the given regular expression. For example, the above configurations will allow the import of `devDependencies` in files whose names include `test` or `spec`.
3535

3636
## Rule Details
3737

@@ -99,5 +99,3 @@ import react from 'react';
9999
## When Not To Use It
100100

101101
If you do not have a `package.json` file in your project.
102-
103-
[`test`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test "RegExp.prototype.test"

0 commit comments

Comments
 (0)