@codechecks/ban-deps-codecheck

Prevent direct or indirect dependencies on your package

Usage no npm install needed!

<script type="module">
  import codechecksBanDepsCodecheck from 'https://cdn.skypack.dev/@codechecks/ban-deps-codecheck';
</script>

README

Ban Dependencies Codecheck

Prevent direct or indirect production dependencies on your package

Build Status Software License

Install

npm install --save-dev @codechecks/ban-deps-codecheck

Usage

Are you new to codechecks? Check out getting started guide (it's simple)!

Add to your codechecks.yml file:

checks:
  - name: ban-deps-codecheck
    options:
      - name: node-gyp
        reason: "No native modules please! They make installation much harder"
  # ...

👉 Note:

  • it will check only production dependencies
  • works only with yarn right now

Contributing

Have an idea to improve this check? Don't hesitate to create an issue / submit a PR!