Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add no-repeated-dependencies rule #155

Closed
aaroncadrian opened this issue Nov 10, 2019 · 1 comment · Fixed by #166
Closed

Add no-repeated-dependencies rule #155

aaroncadrian opened this issue Nov 10, 2019 · 1 comment · Fixed by #166
Labels
enhancement 👑 New feature or request

Comments

@aaroncadrian
Copy link

On one of my projects, someone installed a dependency in dependencies that already existed in devDependencies.

For example:

{
  "dependencies": {
    "a": "^1.0.0",
    "b": "^1.0.0"
  },
  "devDependencies": {
    "b": "^1.0.0",
    "c": "^1.0.0"
  }
}

In this example, I'd like a rule that would throw an error upon detecting that b is in both dependencies and devDependencies.

@tclindner tclindner added the enhancement 👑 New feature or request label Nov 10, 2019
tclindner added a commit that referenced this issue Nov 16, 2019
@tclindner tclindner mentioned this issue Nov 16, 2019
2 tasks
tclindner added a commit that referenced this issue Nov 17, 2019
* Bump version

* Add no-repeated-dependencies rule

Closes #155

* Add wildcard support for no-restricted-dependencies and no-restricted-devDependencies

Closes #154

* Add prefer-alphabetical-scripts rule

Closes #153

* 4.2.0 of docs

* Update dependency-audit.js

* Update to dependency

* Change to wild card for tests
@tclindner
Copy link
Owner

Hey @aaroncadrian v4.2.0 has been released. Let me know what you think of the new rule!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 👑 New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants