Skip to content

Commit 8f9e81a

Browse files
committed
feat: add renovate configs
1. base.json5 is applicable to all projects 2. eslint-base.json5 extends base.json5 and adds ESLint related configurations
1 parent c069e25 commit 8f9e81a

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/renovate/base.json5

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3+
extends: [
4+
"config:recommended",
5+
":approveMajorUpdates",
6+
":semanticCommitScopeDisabled",
7+
],
8+
ignorePresets: [":semanticPrefixFixDepsChoreOthers"],
9+
labels: ["dependencies"],
10+
11+
// Wait well over npm's three day window for any new package as a precaution against malicious publishes
12+
// https://docs.npmjs.com/policies/unpublish/#packages-published-less-than-72-hours-ago
13+
minimumReleaseAge: "7 days",
14+
15+
packageRules: [
16+
{
17+
description: "Use the deps:actions label for github-action manager updates (this means Renovate's github-action manager).",
18+
addLabels: ["deps:actions"],
19+
matchManagers: ["github-actions"],
20+
},
21+
{
22+
description: "Use the deps:npm label for npm manager packages (this means Renovate's npm manager).",
23+
addLabels: ["deps:npm"],
24+
matchManagers: ["npm"],
25+
},
26+
],
27+
}

.github/renovate/eslint-base.json5

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3+
extends: ["github>eslint/workflows//.github/renovate/base.json5"],
4+
packageRules: [
5+
{
6+
description: "Update ESLint packages together.",
7+
groupName: "eslint",
8+
matchPackagePrefixes: ["@eslint/"],
9+
matchPackageNames: ["espree", "eslint-scope", "eslint-visitor-keys"],
10+
minimumReleaseAge: null, // Don't wait for these packages
11+
},
12+
],
13+
}

0 commit comments

Comments
 (0)