Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/renovate/base.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: [
"config:recommended",
":approveMajorUpdates",
":semanticCommitScopeDisabled",
],
ignorePresets: [":semanticPrefixFixDepsChoreOthers"],
labels: ["dependencies"],

// Wait well over npm's three day window for any new package as a precaution against malicious publishes
// https://docs.npmjs.com/policies/unpublish/#packages-published-less-than-72-hours-ago
minimumReleaseAge: "7 days",

packageRules: [
{
description: "Use the deps:actions label for github-action manager updates (this means Renovate's github-action manager).",
addLabels: ["deps:actions"],
matchManagers: ["github-actions"],
},
{
description: "Use the deps:npm label for npm manager packages (this means Renovate's npm manager).",
addLabels: ["deps:npm"],
matchManagers: ["npm"],
},
],
}
19 changes: 19 additions & 0 deletions .github/renovate/eslint-base.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: ["github>eslint/workflows//.github/renovate/base.json5"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just use a local file path instead?

Suggested change
extends: ["github>eslint/workflows//.github/renovate/base.json5"],
extends: ["base.json5"],

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if it can work as expected - it may be seen as built-in preset. I will change it to ./base.json5 to see if it's working.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, I've also looked at the official documentation, but it seems there's no way to use a local path directly. 🤔

https://docs.renovatebot.com/config-presets/#github

packageRules: [
{
description: "Update ESLint packages together.",
groupName: "eslint",
matchPackagePrefixes: ["@eslint/"],
matchPackageNames: ["espree", "eslint-scope", "eslint-visitor-keys"],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not adding eslint, eslint-config-eslint - they usually belong to dev-dependencies.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed a new commit to group eslint & eslint-config-eslint: 360397d

minimumReleaseAge: null, // Don't wait for these packages
},
{
description: "Update ESLint dev dependencies together.",
groupName: "eslint-dev",
matchPackageNames: ["eslint", "eslint-config-eslint"],
minimumReleaseAge: null, // Don't wait for these packages
},
],
}