Skip to content

Commit

Permalink
Update doc due to review.
Browse files Browse the repository at this point in the history
  • Loading branch information
knpwrs committed Aug 28, 2016
1 parent c739798 commit 1be4720
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/rules/no-extraneous-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ If you are using JavaScript configuration (e.g., `.eslintrc.js`), then you can u
"import/no-extraneous-dependencies": ["error", {"devDependencies": /test|spec/}]
```

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`.
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`.

## Rule Details

Expand Down Expand Up @@ -99,5 +99,3 @@ import react from 'react';
## When Not To Use It

If you do not have a `package.json` file in your project.

[`test`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test "RegExp.prototype.test"

0 comments on commit 1be4720

Please sign in to comment.