0.2.0 • Published 2 years ago

@bb-cli/eslint-plugin-no-old-dependencies v0.2.0

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

@bb-cli/eslint-plugin-no-old-dependencies

ESlint plugin which checks if correct version of common library is used by other libraries.

Author: Backbase

The plugin:

  • Reads the list of common libraries provided in .eslintrc
  • For Each library in /libs
    • If common library is used in "dependencies" section
      • Check if version matches the version in <common-library>/package.json
      • Report error if versions do not match

Instalation

npm i -D @bb-cli/eslint-plugin-no-old-dependencies

Configuration (.eslintrc)

{
  "overrides": [
    {
      "files": ["*.json"],
      "extends": ["plugin:@bb-cli/no-old-dependencies/all"],
      "rules": {
        "@bb-cli/no-old-dependencies/no-old-deps": [
          "error",
          [
            "<common-library>", 
            "@scoped/library",
            "libs/library",
            "packages/library",
            "libs/groupedFolder/library", 
            "packages/groupedFolder/library
          ]
        ]
      }
    }
  ]
}
0.2.0

2 years ago

0.1.0

2 years ago

0.0.2

2 years ago