@bb-cli/eslint-plugin-no-old-dependencies
v0.2.0
Published
Plugin to validate dependencies in journey
Downloads
3
Readme
@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
- Check if version matches the version in
- If common library is used in "dependencies" section
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
]
]
}
}
]
}