require-dependency-update-config
Require automated dependency update configuration in the repository.
Targeted pattern scopeâ
This rule checks the repository root for any recognised automated dependency update configuration. Supported groups are:
- Renovate configuration files (
renovate.json,renovate.json5,renovate.yml,renovate.yaml,renovate.config.js,renovate.config.cjs,renovate.config.mjs,.github/renovate.json,.github/renovate.json5,.github/renovate.yml,.github/renovate.yaml,.renovaterc,.renovaterc.json,.renovaterc.json5,.renovaterc.yml,.renovaterc.yaml,.renovaterc.js,.renovaterc.cjs,.renovaterc.mjs) - Dependabot configuration files (
.github/dependabot.yml,.github/dependabot.yaml, legacy.dependabot/config.yml,.dependabot/config.yaml) - Updatecli configuration files (
updatecli.yml,updatecli.yaml, or any.yml/.yamlfile insideupdatecli.d/)
At least one supported configuration must be present.
What this rule reportsâ
This rule reports when no supported automated dependency update configuration is found.
Why this rule existsâ
Outdated dependencies are one of the most common sources of security vulnerabilities and compatibility issues. Automated dependency update tooling such as Renovate, Dependabot, or Updatecli ensures updates are regularly proposed, reviewed, and merged instead of being forgotten. A repository without any supported dependency update configuration is likely accumulating technical debt silently.
â Incorrectâ
// No automated dependency update configuration found
.github/
CODEOWNERS
src/
package.json
â Correctâ
Using Dependabot:
# .github/dependabot.yml
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
Alternative: using Renovateâ
// renovate.json
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"]
}
Alternative: using Updatecliâ
# updatecli.yaml
sources: {}
targets: {}
ESLint flat config exampleâ
import repoPlugin from "eslint-plugin-repo";
export default [
repoPlugin.configs.strict,
{
plugins: { "repo-compliance": repoPlugin },
rules: {
"repo-compliance/require-dependency-update-config": "error",
},
},
];
When not to use itâ
Disable this rule if your team manages dependency updates through a different automated process (for example an internal platform bot or a centrally managed service) and you deliberately do not want repository-local Renovate, Dependabot, or Updatecli configuration.
Rule catalog ID: R040