Skip to content

An ESLint plugin for package-json dependencies, for both JS and TS projects.

License

Notifications You must be signed in to change notification settings

idan-at/eslint-plugin-package-json-dependencies

Repository files navigation

eslint-plugin-package-json-dependencies

npm version Actions Status: build

This plugin contains rules for maintaining a valid, consistent package.json dependency setup.

Installation

npm install --save-dev eslint eslint-plugin-package-json-dependencies

Usage

  1. Add the plugin and its parser to your eslint config file overrides section:
// eslintrc.json
{
  "overrides": [
    {
      "files": ["*.json"],
      "parser": "eslint-plugin-package-json-dependencies",
      "plugins": ["package-json-dependencies"]
    }
  ]
}
  1. Apply the specific rules applicable to your repo, e.g.:
// eslintrc.json
{
  "rules": {
    "package-json-dependencies/no-missing-types": "error"
  }
}

Available Rules

Development

  • npm install
  • npm test
  • npm run format

About

An ESLint plugin for package-json dependencies, for both JS and TS projects.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published