@culur/config-eslint 1.2.7 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/dist/chunk-34KGRL7Y.js +60 -0
- package/dist/chunk-34KGRL7Y.js.map +1 -0
- package/dist/{chunk-KN3PLU2G.cjs → chunk-4QPI2SAB.cjs} +9 -9
- package/dist/chunk-4QPI2SAB.cjs.map +1 -0
- package/dist/chunk-57VLPYOX.cjs +169 -0
- package/dist/chunk-57VLPYOX.cjs.map +1 -0
- package/dist/chunk-7AK343NH.js +29 -0
- package/dist/chunk-7AK343NH.js.map +1 -0
- package/dist/chunk-7E5Q2JAD.cjs +11 -0
- package/dist/chunk-7E5Q2JAD.cjs.map +1 -0
- package/dist/chunk-7XSKNEKZ.js +42 -0
- package/dist/chunk-7XSKNEKZ.js.map +1 -0
- package/dist/chunk-ADFLVWBI.js +71 -0
- package/dist/chunk-ADFLVWBI.js.map +1 -0
- package/dist/chunk-B5LT54QB.cjs +4 -0
- package/dist/{chunk-E5EMCYCV.cjs.map → chunk-B5LT54QB.cjs.map} +1 -1
- package/dist/chunk-EIOVMZZG.cjs +35 -0
- package/dist/chunk-EIOVMZZG.cjs.map +1 -0
- package/dist/chunk-FAZZKQ2N.js +37 -0
- package/dist/chunk-FAZZKQ2N.js.map +1 -0
- package/dist/chunk-IDYE4YOL.cjs +44 -0
- package/dist/chunk-IDYE4YOL.cjs.map +1 -0
- package/dist/chunk-IW6EN63T.js +167 -0
- package/dist/chunk-IW6EN63T.js.map +1 -0
- package/dist/chunk-IZ6BHA77.cjs +38 -0
- package/dist/chunk-IZ6BHA77.cjs.map +1 -0
- package/dist/{chunk-HTFVO7PM.js → chunk-L7ZLPRIG.js} +2 -2
- package/dist/chunk-L7ZLPRIG.js.map +1 -0
- package/dist/chunk-LTO3ELVV.cjs +62 -0
- package/dist/chunk-LTO3ELVV.cjs.map +1 -0
- package/dist/{chunk-CXG4MLTZ.cjs → chunk-LYCFRD6B.cjs} +2 -2
- package/dist/chunk-LYCFRD6B.cjs.map +1 -0
- package/dist/chunk-N23I5XG5.cjs +39 -0
- package/dist/chunk-N23I5XG5.cjs.map +1 -0
- package/dist/chunk-NBGGFQGT.cjs +73 -0
- package/dist/chunk-NBGGFQGT.cjs.map +1 -0
- package/dist/chunk-NJ4DHXCJ.js +187 -0
- package/dist/chunk-NJ4DHXCJ.js.map +1 -0
- package/dist/chunk-OP3ZXBGI.js +3 -0
- package/dist/{chunk-5VT4PGNG.js.map → chunk-OP3ZXBGI.js.map} +1 -1
- package/dist/chunk-PLLR3GUB.cjs +47 -0
- package/dist/chunk-PLLR3GUB.cjs.map +1 -0
- package/dist/chunk-PQWFXG2M.js +3 -0
- package/dist/{chunk-BV3HMMMY.js.map → chunk-PQWFXG2M.js.map} +1 -1
- package/dist/chunk-RCWWFUNP.cjs +43 -0
- package/dist/chunk-RCWWFUNP.cjs.map +1 -0
- package/dist/chunk-RQTUYUMU.js +9 -0
- package/dist/chunk-RQTUYUMU.js.map +1 -0
- package/dist/chunk-S6FJNCD7.js +41 -0
- package/dist/chunk-S6FJNCD7.js.map +1 -0
- package/dist/chunk-TA5YEKPP.cjs +4 -0
- package/dist/{chunk-KA55FMNP.cjs.map → chunk-TA5YEKPP.cjs.map} +1 -1
- package/dist/chunk-VQCPNYZY.cjs +189 -0
- package/dist/chunk-VQCPNYZY.cjs.map +1 -0
- package/dist/chunk-X5D52UEW.js +45 -0
- package/dist/chunk-X5D52UEW.js.map +1 -0
- package/dist/chunk-ZJQ4LO2W.js +36 -0
- package/dist/chunk-ZJQ4LO2W.js.map +1 -0
- package/dist/{chunk-HXCKETJH.js → chunk-ZPBJ5K4H.js} +8 -8
- package/dist/chunk-ZPBJ5K4H.js.map +1 -0
- package/dist/index.cjs +21 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -5
- package/dist/index.js.map +1 -1
- package/dist/overrides/imports-rules.d.cts +1 -0
- package/dist/overrides/imports-rules.d.ts +1 -0
- package/dist/overrides/index.cjs +6 -1
- package/dist/overrides/index.d.cts +2 -0
- package/dist/overrides/index.d.ts +2 -0
- package/dist/overrides/index.js +2 -1
- package/dist/overrides/sort-package-json.d.cts +1 -0
- package/dist/overrides/sort-package-json.d.ts +1 -0
- package/dist/overrides/test-rules.cjs +12 -0
- package/dist/overrides/test-rules.cjs.map +1 -0
- package/dist/overrides/test-rules.d.cts +20 -0
- package/dist/overrides/test-rules.d.ts +20 -0
- package/dist/overrides/test-rules.js +3 -0
- package/dist/overrides/test-rules.js.map +1 -0
- package/dist/overrides/vue-rules.d.cts +1 -0
- package/dist/overrides/vue-rules.d.ts +1 -0
- package/dist/rules/index.cjs +24 -10
- package/dist/rules/index.d.cts +2 -1
- package/dist/rules/index.d.ts +2 -1
- package/dist/rules/index.js +12 -2
- package/dist/rules/renovate-json/base/assignees-and-reviewers-config.cjs +12 -0
- package/dist/rules/renovate-json/base/assignees-and-reviewers-config.cjs.map +1 -0
- package/dist/rules/renovate-json/base/assignees-and-reviewers-config.d.cts +7 -0
- package/dist/rules/renovate-json/base/assignees-and-reviewers-config.d.ts +7 -0
- package/dist/rules/renovate-json/base/assignees-and-reviewers-config.js +3 -0
- package/dist/rules/renovate-json/base/assignees-and-reviewers-config.js.map +1 -0
- package/dist/rules/renovate-json/base/config-migration.cjs +12 -0
- package/dist/rules/renovate-json/base/config-migration.cjs.map +1 -0
- package/dist/rules/renovate-json/base/config-migration.d.cts +3 -0
- package/dist/rules/renovate-json/base/config-migration.d.ts +3 -0
- package/dist/rules/renovate-json/base/config-migration.js +3 -0
- package/dist/rules/renovate-json/base/config-migration.js.map +1 -0
- package/dist/rules/renovate-json/base/legacy-admin-config.cjs +12 -0
- package/dist/rules/renovate-json/base/legacy-admin-config.cjs.map +1 -0
- package/dist/rules/renovate-json/base/legacy-admin-config.d.cts +7 -0
- package/dist/rules/renovate-json/base/legacy-admin-config.d.ts +7 -0
- package/dist/rules/renovate-json/base/legacy-admin-config.js +3 -0
- package/dist/rules/renovate-json/base/legacy-admin-config.js.map +1 -0
- package/dist/rules/renovate-json/base/package-rule.cjs +12 -0
- package/dist/rules/renovate-json/base/package-rule.cjs.map +1 -0
- package/dist/rules/renovate-json/base/package-rule.d.cts +10 -0
- package/dist/rules/renovate-json/base/package-rule.d.ts +10 -0
- package/dist/rules/renovate-json/base/package-rule.js +3 -0
- package/dist/rules/renovate-json/base/package-rule.js.map +1 -0
- package/dist/rules/renovate-json/base/renovate-config.cjs +12 -0
- package/dist/rules/renovate-json/base/renovate-config.cjs.map +1 -0
- package/dist/rules/renovate-json/base/renovate-config.d.cts +20 -0
- package/dist/rules/renovate-json/base/renovate-config.d.ts +20 -0
- package/dist/rules/renovate-json/base/renovate-config.js +3 -0
- package/dist/rules/renovate-json/base/renovate-config.js.map +1 -0
- package/dist/rules/renovate-json/base/renovate-shared-config.cjs +12 -0
- package/dist/rules/renovate-json/base/renovate-shared-config.cjs.map +1 -0
- package/dist/rules/renovate-json/base/renovate-shared-config.d.cts +15 -0
- package/dist/rules/renovate-json/base/renovate-shared-config.d.ts +15 -0
- package/dist/rules/renovate-json/base/renovate-shared-config.js +3 -0
- package/dist/rules/renovate-json/base/renovate-shared-config.js.map +1 -0
- package/dist/rules/renovate-json/base/types.cjs +4 -0
- package/dist/rules/renovate-json/base/types.cjs.map +1 -0
- package/dist/rules/renovate-json/base/types.d.cts +9 -0
- package/dist/rules/renovate-json/base/types.d.ts +9 -0
- package/dist/rules/renovate-json/base/types.js +3 -0
- package/dist/rules/renovate-json/base/types.js.map +1 -0
- package/dist/rules/renovate-json/base/update-config.cjs +12 -0
- package/dist/rules/renovate-json/base/update-config.cjs.map +1 -0
- package/dist/rules/renovate-json/base/update-config.d.cts +8 -0
- package/dist/rules/renovate-json/base/update-config.d.ts +8 -0
- package/dist/rules/renovate-json/base/update-config.js +3 -0
- package/dist/rules/renovate-json/base/update-config.js.map +1 -0
- package/dist/rules/renovate-json/index.cjs +21 -0
- package/dist/rules/renovate-json/index.cjs.map +1 -0
- package/dist/rules/renovate-json/index.d.cts +5 -0
- package/dist/rules/renovate-json/index.d.ts +5 -0
- package/dist/rules/renovate-json/index.js +12 -0
- package/dist/rules/renovate-json/index.js.map +1 -0
- package/dist/rules/renovate-json/order/package-rule.cjs +15 -0
- package/dist/rules/renovate-json/order/package-rule.cjs.map +1 -0
- package/dist/rules/renovate-json/order/package-rule.d.cts +8 -0
- package/dist/rules/renovate-json/order/package-rule.d.ts +8 -0
- package/dist/rules/renovate-json/order/package-rule.js +6 -0
- package/dist/rules/renovate-json/order/package-rule.js.map +1 -0
- package/dist/rules/renovate-json/order/root.cjs +18 -0
- package/dist/rules/renovate-json/order/root.cjs.map +1 -0
- package/dist/rules/renovate-json/order/root.d.cts +8 -0
- package/dist/rules/renovate-json/order/root.d.ts +8 -0
- package/dist/rules/renovate-json/order/root.js +9 -0
- package/dist/rules/renovate-json/order/root.js.map +1 -0
- package/dist/rules/yarnrc-yml.cjs +6 -6
- package/dist/rules/yarnrc-yml.d.cts +3 -3
- package/dist/rules/yarnrc-yml.d.ts +3 -3
- package/dist/rules/yarnrc-yml.js +1 -1
- package/dist/types/index.cjs +2 -2
- package/dist/types/index.d.cts +4 -2
- package/dist/types/index.d.ts +4 -2
- package/dist/types/index.js +1 -1
- package/package.json +7 -6
- package/src/index.ts +5 -2
- package/src/overrides/index.ts +1 -0
- package/src/overrides/test-rules.ts +43 -0
- package/src/rules/index.ts +1 -0
- package/src/rules/renovate-json/base/assignees-and-reviewers-config.ts +26 -0
- package/src/rules/renovate-json/base/config-migration.ts +5 -0
- package/src/rules/renovate-json/base/legacy-admin-config.ts +30 -0
- package/src/rules/renovate-json/base/package-rule.ts +49 -0
- package/src/rules/renovate-json/base/renovate-config.ts +132 -0
- package/src/rules/renovate-json/base/renovate-shared-config.ts +114 -0
- package/src/rules/renovate-json/base/types.ts +15 -0
- package/src/rules/renovate-json/base/update-config.ts +34 -0
- package/src/rules/renovate-json/index.ts +32 -0
- package/src/rules/renovate-json/order/package-rule.ts +48 -0
- package/src/rules/renovate-json/order/root.ts +69 -0
- package/src/rules/yarnrc-yml.ts +5 -5
- package/src/types/index.ts +12 -1
- package/dist/chunk-5VT4PGNG.js +0 -3
- package/dist/chunk-BV3HMMMY.js +0 -3
- package/dist/chunk-CXG4MLTZ.cjs.map +0 -1
- package/dist/chunk-E5EMCYCV.cjs +0 -4
- package/dist/chunk-HTFVO7PM.js.map +0 -1
- package/dist/chunk-HXCKETJH.js.map +0 -1
- package/dist/chunk-KA55FMNP.cjs +0 -4
- package/dist/chunk-KN3PLU2G.cjs.map +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// src/rules/renovate-json/base/assignees-and-reviewers-config.ts
|
|
2
|
+
var assigneesAndReviewersConfig = {
|
|
3
|
+
// --- Assignees ---
|
|
4
|
+
assignees: [
|
|
5
|
+
"assignees",
|
|
6
|
+
// string[]: Explicit list of usernames to assign to the PR.
|
|
7
|
+
"assigneesFromCodeOwners",
|
|
8
|
+
// boolean: Assign users listed as owners in the CODEOWNERS file.
|
|
9
|
+
"assigneesSampleSize"
|
|
10
|
+
// number: Select a random sample of this size from the potential assignees (either from `assignees` list or CODEOWNERS). [1]
|
|
11
|
+
],
|
|
12
|
+
// --- Reviewers ---
|
|
13
|
+
reviewers: [
|
|
14
|
+
"reviewers",
|
|
15
|
+
// string[]: Explicit list of usernames to request reviews from.
|
|
16
|
+
"reviewersFromCodeOwners",
|
|
17
|
+
// boolean: Request reviews from users listed as owners in the CODEOWNERS file.
|
|
18
|
+
"reviewersSampleSize",
|
|
19
|
+
// number: Select a random sample of this size from the potential reviewers (either from `reviewers` list or CODEOWNERS).
|
|
20
|
+
"additionalReviewers",
|
|
21
|
+
// string[]: Add these users as reviewers *in addition* to any specified in `reviewers` or derived from CODEOWNERS. Useful for adding specific reviewers in package rules without overriding the base list. [14]
|
|
22
|
+
"ignoreReviewers"
|
|
23
|
+
// string[]: List of usernames that should *not* be added as reviewers, even if they are in the `reviewers` list or CODEOWNERS. Useful for filtering out bots or users on leave. [2]
|
|
24
|
+
],
|
|
25
|
+
// --- Common / Helper Options ---
|
|
26
|
+
common: [
|
|
27
|
+
"expandCodeOwnersGroups",
|
|
28
|
+
// boolean: If true, Renovate expands CODEOWNERS groups (like `@org/team`) into individual members before applying logic like `reviewersSampleSize`. Supported on GitLab [3, 4, 6] and potentially other platforms supporting group expansion [1].
|
|
29
|
+
"filterUnavailableUsers"
|
|
30
|
+
// boolean: (Note: Supported on GitLab [3, 5]) Check if assigned/requested users are actually available/have access on the platform before adding them. [3, 5, 8, 12, 13] Prevents errors if a listed user doesn't exist or can't access the repository.
|
|
31
|
+
// 'assignAutomerge', // boolean: (Note: From [14], likely deprecated or less common) Assign reviewers/assignees even if automerge is enabled. Default Renovate behavior is *not* to add assignees/reviewers if automerge is set, to reduce noise, unless the PR fails checks. [2, 7]
|
|
32
|
+
]
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export { assigneesAndReviewersConfig };
|
|
36
|
+
//# sourceMappingURL=chunk-FAZZKQ2N.js.map
|
|
37
|
+
//# sourceMappingURL=chunk-FAZZKQ2N.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/rules/renovate-json/base/assignees-and-reviewers-config.ts"],"names":[],"mappings":";AAEO,IAAM,2BAA8B,GAAA;AAAA;AAAA,EAEzC,SAAW,EAAA;AAAA,IACT,WAAA;AAAA;AAAA,IACA,yBAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,SAAW,EAAA;AAAA,IACT,WAAA;AAAA;AAAA,IACA,yBAAA;AAAA;AAAA,IACA,qBAAA;AAAA;AAAA,IACA,qBAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,MAAQ,EAAA;AAAA,IACN,wBAAA;AAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAGJ","file":"chunk-FAZZKQ2N.js","sourcesContent":["import type { JsoncSortKeysOrderMap } from './types';\n\nexport const assigneesAndReviewersConfig = {\n // --- Assignees ---\n assignees: [\n 'assignees', // string[]: Explicit list of usernames to assign to the PR.\n 'assigneesFromCodeOwners', // boolean: Assign users listed as owners in the CODEOWNERS file.\n 'assigneesSampleSize', // number: Select a random sample of this size from the potential assignees (either from `assignees` list or CODEOWNERS). [1]\n ],\n\n // --- Reviewers ---\n reviewers: [\n 'reviewers', // string[]: Explicit list of usernames to request reviews from.\n 'reviewersFromCodeOwners', // boolean: Request reviews from users listed as owners in the CODEOWNERS file.\n 'reviewersSampleSize', // number: Select a random sample of this size from the potential reviewers (either from `reviewers` list or CODEOWNERS).\n 'additionalReviewers', // string[]: Add these users as reviewers *in addition* to any specified in `reviewers` or derived from CODEOWNERS. Useful for adding specific reviewers in package rules without overriding the base list. [14]\n 'ignoreReviewers', // string[]: List of usernames that should *not* be added as reviewers, even if they are in the `reviewers` list or CODEOWNERS. Useful for filtering out bots or users on leave. [2]\n ],\n\n // --- Common / Helper Options ---\n common: [\n 'expandCodeOwnersGroups', // boolean: If true, Renovate expands CODEOWNERS groups (like `@org/team`) into individual members before applying logic like `reviewersSampleSize`. Supported on GitLab [3, 4, 6] and potentially other platforms supporting group expansion [1].\n 'filterUnavailableUsers', // boolean: (Note: Supported on GitLab [3, 5]) Check if assigned/requested users are actually available/have access on the platform before adding them. [3, 5, 8, 12, 13] Prevents errors if a listed user doesn't exist or can't access the repository.\n // 'assignAutomerge', // boolean: (Note: From [14], likely deprecated or less common) Assign reviewers/assignees even if automerge is enabled. Default Renovate behavior is *not* to add assignees/reviewers if automerge is set, to reduce noise, unless the PR fails checks. [2, 7]\n ],\n} as const satisfies JsoncSortKeysOrderMap;\n"]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/rules/renovate-json/base/legacy-admin-config.ts
|
|
4
|
+
var legacyAdminConfig = {
|
|
5
|
+
// --- Onboarding Configuration ---
|
|
6
|
+
// Controls the behavior of the initial "onboarding" PR that Renovate creates
|
|
7
|
+
// when it's first enabled on a repository, typically adding the renovate.json config file.
|
|
8
|
+
onboarding: [
|
|
9
|
+
"onboarding",
|
|
10
|
+
// boolean: Enables or disables the onboarding process. If false, Renovate might not start if no config exists.
|
|
11
|
+
"onboardingBranch",
|
|
12
|
+
// string: The name of the branch to use for the onboarding PR (e.g., "renovate/configure").
|
|
13
|
+
"onboardingCommitMessage",
|
|
14
|
+
// string: Custom commit message for the onboarding commit.
|
|
15
|
+
"onboardingPrTitle",
|
|
16
|
+
// string: Custom title for the onboarding PR.
|
|
17
|
+
"onboardingConfig",
|
|
18
|
+
// RenovateSharedConfig: A minimal Renovate configuration object to propose in the onboarding PR.
|
|
19
|
+
"onboardingConfigFileName",
|
|
20
|
+
// string: The filename for the proposed configuration file (e.g., "renovate.json", ".github/renovate.json").
|
|
21
|
+
"onboardingRebaseCheckbox",
|
|
22
|
+
// boolean: Adds a checkbox to the onboarding PR body allowing users to request Renovate to rebase the PR. (Note: Specific to platform integration).
|
|
23
|
+
"onboardingNoDeps"
|
|
24
|
+
// 'auto' | 'enabled' | 'disabled': Controls whether the onboarding PR should include initial dependency updates or just the configuration file. 'auto' usually means include updates if few dependencies exist.
|
|
25
|
+
],
|
|
26
|
+
// --- Configuration Requirements ---
|
|
27
|
+
// Defines requirements for the Renovate configuration itself.
|
|
28
|
+
configurationRequirements: [
|
|
29
|
+
"requireConfig"
|
|
30
|
+
// RequiredConfig ('required', 'optional', 'ignored'): Specifies whether a Renovate configuration file (`renovate.json`, etc.) is mandatory for Renovate to run on the repository. 'ignored' might be used in centrally managed setups.
|
|
31
|
+
],
|
|
32
|
+
// --- Execution Environment & Logging (Legacy/Admin) ---
|
|
33
|
+
// These settings are often more relevant for self-hosted Renovate instances or specific admin controls.
|
|
34
|
+
executionLogging: [
|
|
35
|
+
"localDir",
|
|
36
|
+
// string: Specifies a local directory path, potentially used for caching or temporary files in self-hosted environments. (Note: Less common in typical SaaS usage).
|
|
37
|
+
"logContext"
|
|
38
|
+
// string: Adds a custom string/context to log messages, helpful for identifying logs from specific Renovate instances or runs.
|
|
39
|
+
]
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
exports.legacyAdminConfig = legacyAdminConfig;
|
|
43
|
+
//# sourceMappingURL=chunk-IDYE4YOL.cjs.map
|
|
44
|
+
//# sourceMappingURL=chunk-IDYE4YOL.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/rules/renovate-json/base/legacy-admin-config.ts"],"names":[],"mappings":";;;AAEO,IAAM,iBAAoB,GAAA;AAAA;AAAA;AAAA;AAAA,EAI/B,UAAY,EAAA;AAAA,IACV,YAAA;AAAA;AAAA,IACA,kBAAA;AAAA;AAAA,IACA,yBAAA;AAAA;AAAA,IACA,mBAAA;AAAA;AAAA,IACA,kBAAA;AAAA;AAAA,IACA,0BAAA;AAAA;AAAA,IACA,0BAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA;AAAA,EAIA,yBAA2B,EAAA;AAAA,IACzB;AAAA;AAAA,GACF;AAAA;AAAA;AAAA,EAIA,gBAAkB,EAAA;AAAA,IAChB,UAAA;AAAA;AAAA,IACA;AAAA;AAAA;AAEJ","file":"chunk-IDYE4YOL.cjs","sourcesContent":["import type { JsoncSortKeysOrderMap } from './types';\n\nexport const legacyAdminConfig = {\n // --- Onboarding Configuration ---\n // Controls the behavior of the initial \"onboarding\" PR that Renovate creates\n // when it's first enabled on a repository, typically adding the renovate.json config file.\n onboarding: [\n 'onboarding', // boolean: Enables or disables the onboarding process. If false, Renovate might not start if no config exists.\n 'onboardingBranch', // string: The name of the branch to use for the onboarding PR (e.g., \"renovate/configure\").\n 'onboardingCommitMessage', // string: Custom commit message for the onboarding commit.\n 'onboardingPrTitle', // string: Custom title for the onboarding PR.\n 'onboardingConfig', // RenovateSharedConfig: A minimal Renovate configuration object to propose in the onboarding PR.\n 'onboardingConfigFileName', // string: The filename for the proposed configuration file (e.g., \"renovate.json\", \".github/renovate.json\").\n 'onboardingRebaseCheckbox', // boolean: Adds a checkbox to the onboarding PR body allowing users to request Renovate to rebase the PR. (Note: Specific to platform integration).\n 'onboardingNoDeps', // 'auto' | 'enabled' | 'disabled': Controls whether the onboarding PR should include initial dependency updates or just the configuration file. 'auto' usually means include updates if few dependencies exist.\n ],\n\n // --- Configuration Requirements ---\n // Defines requirements for the Renovate configuration itself.\n configurationRequirements: [\n 'requireConfig', // RequiredConfig ('required', 'optional', 'ignored'): Specifies whether a Renovate configuration file (`renovate.json`, etc.) is mandatory for Renovate to run on the repository. 'ignored' might be used in centrally managed setups.\n ],\n\n // --- Execution Environment & Logging (Legacy/Admin) ---\n // These settings are often more relevant for self-hosted Renovate instances or specific admin controls.\n executionLogging: [\n 'localDir', // string: Specifies a local directory path, potentially used for caching or temporary files in self-hosted environments. (Note: Less common in typical SaaS usage).\n 'logContext', // string: Adds a custom string/context to log messages, helpful for identifying logs from specific Renovate instances or runs.\n ],\n} as const satisfies JsoncSortKeysOrderMap;\n"]}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
// src/rules/renovate-json/base/renovate-shared-config.ts
|
|
2
|
+
var renovateSharedConfig = {
|
|
3
|
+
// --- Core Configuration ---
|
|
4
|
+
config: [
|
|
5
|
+
"$schema",
|
|
6
|
+
// string: Reference to the JSON schema for validation.
|
|
7
|
+
"extends",
|
|
8
|
+
// string[]: Specifies configuration presets to inherit from.
|
|
9
|
+
"enabled",
|
|
10
|
+
// boolean: Enables or disables Renovate for the repository or rule.
|
|
11
|
+
"enabledManagers"
|
|
12
|
+
// string[]: List of package managers to enable (e.g., ["npm", "docker"]).
|
|
13
|
+
],
|
|
14
|
+
// --- Dependency Dashboard ---
|
|
15
|
+
dependencyDashboard: [
|
|
16
|
+
"dependencyDashboardApproval"
|
|
17
|
+
// boolean: Requires manual approval via the Dependency Dashboard checkbox before a PR is created.
|
|
18
|
+
],
|
|
19
|
+
// --- Scheduling and Timezone ---
|
|
20
|
+
schedule: [
|
|
21
|
+
"schedule",
|
|
22
|
+
// string[]: Defines when Renovate should run using cron syntax or presets.
|
|
23
|
+
"timezone"
|
|
24
|
+
// string: Timezone to use for scheduling (e.g., "UTC", "America/New_York").
|
|
25
|
+
],
|
|
26
|
+
// --- Automerge ---
|
|
27
|
+
automerge: [
|
|
28
|
+
"automerge",
|
|
29
|
+
// boolean: Enables automatic merging of PRs when conditions are met.
|
|
30
|
+
"automergeType",
|
|
31
|
+
// 'pr' | 'branch-push' | 'pr-comment': Specifies the automerge mechanism. Deprecated/renamed? (Note: Not in original list, added for context, potentially maps to other settings).
|
|
32
|
+
"automergeStrategy",
|
|
33
|
+
// MergeStrategy ('auto', 'merge', 'rebase', 'squash'): The merge strategy to use for automerging.
|
|
34
|
+
"automergeSchedule",
|
|
35
|
+
// string[]: Schedules automerging attempts independently of PR updates.
|
|
36
|
+
"internalChecksAsSuccess",
|
|
37
|
+
// boolean: Considers Renovate's internal checks as successful for automerge status checks.
|
|
38
|
+
"platformAutomerge"
|
|
39
|
+
// boolean: Use the platform's native automerge feature if available. (Note: Not in original list, but common).
|
|
40
|
+
],
|
|
41
|
+
// --- Branch Management ---
|
|
42
|
+
branch: [
|
|
43
|
+
"branchPrefix",
|
|
44
|
+
// string: Prefix added to all Renovate-created branches.
|
|
45
|
+
"branchName",
|
|
46
|
+
// string: Template for naming Renovate branches.
|
|
47
|
+
"branchNameStrict",
|
|
48
|
+
// boolean: If true, enforces stricter validation for branch names.
|
|
49
|
+
"hashedBranchLength",
|
|
50
|
+
// number: Length of the hash appended to branch names when needed.
|
|
51
|
+
"pruneBranchAfterAutomerge"
|
|
52
|
+
// boolean: Automatically delete the branch after a PR is automerged.
|
|
53
|
+
// 'branchPrefixOld', // string: Potentially deprecated or for specific migration scenarios.
|
|
54
|
+
],
|
|
55
|
+
// --- Grouping Dependencies ---
|
|
56
|
+
grouping: [
|
|
57
|
+
"group",
|
|
58
|
+
// GroupConfig: More detailed configuration for grouping dependencies.
|
|
59
|
+
"groupName",
|
|
60
|
+
// string: A custom name for a group of dependencies updated together in one PR.
|
|
61
|
+
"groupSlug"
|
|
62
|
+
// string: A URL-friendly slug for the group name.
|
|
63
|
+
],
|
|
64
|
+
// --- Commit Management ---
|
|
65
|
+
commit: [
|
|
66
|
+
"semanticCommits",
|
|
67
|
+
// 'auto' | 'enabled' | 'disabled': Controls the use of semantic commit messages.
|
|
68
|
+
"semanticCommitType",
|
|
69
|
+
// string: The type used in semantic commits (e.g., "fix", "chore").
|
|
70
|
+
"semanticCommitScope",
|
|
71
|
+
// string | null: The scope used in semantic commits.
|
|
72
|
+
"commitMessagePrefix",
|
|
73
|
+
// string: Prefix added to all commit messages.
|
|
74
|
+
"commitMessage",
|
|
75
|
+
// string: Template for the commit message body.
|
|
76
|
+
"commitMessageAction",
|
|
77
|
+
// string: Action part of the commit message (e.g., "Update", "Pin").
|
|
78
|
+
"commitMessageTopic",
|
|
79
|
+
// string: Topic part of the commit message (e.g., dependency name).
|
|
80
|
+
"commitMessageExtra",
|
|
81
|
+
// string: Additional details appended to the commit message.
|
|
82
|
+
"commitMessageLowerCase",
|
|
83
|
+
// 'auto' | 'never': Controls the casing of the commit message header.
|
|
84
|
+
"platformCommit"
|
|
85
|
+
// PlatformCommitOptions: Platform-specific commit options.
|
|
86
|
+
],
|
|
87
|
+
// --- Pull Request (PR) Management ---
|
|
88
|
+
pr: [
|
|
89
|
+
"prCreation",
|
|
90
|
+
// 'immediate' | 'not-pending' | 'status-success' | 'approval': Controls when PRs are created based on checks/approvals.
|
|
91
|
+
"draftPR",
|
|
92
|
+
// boolean: Creates PRs as drafts initially.
|
|
93
|
+
"recreateClosed",
|
|
94
|
+
// boolean: Recreate PRs if they were manually closed without merging.
|
|
95
|
+
"recreateWhen",
|
|
96
|
+
// RecreateWhen: Specifies conditions under which closed PRs should be recreated.
|
|
97
|
+
"prBodyColumns",
|
|
98
|
+
// string[]: Specifies which columns to include in the PR body's dependency table.
|
|
99
|
+
"prBodyDefinitions",
|
|
100
|
+
// Record<string, string>: Custom definitions/text for sections within the PR body.
|
|
101
|
+
"prPriority",
|
|
102
|
+
// number: Sets a priority level for the PR (platform-dependent).
|
|
103
|
+
"confidential",
|
|
104
|
+
// boolean: Marks the PR as confidential (platform-dependent, e.g., GitLab).
|
|
105
|
+
"milestone"
|
|
106
|
+
// number: Assigns the PR to a specific milestone number.
|
|
107
|
+
],
|
|
108
|
+
// --- Labels ---
|
|
109
|
+
labels: [
|
|
110
|
+
"labels",
|
|
111
|
+
// string[]: List of labels to be added to created PRs.
|
|
112
|
+
"addLabels",
|
|
113
|
+
// string[]: Additional labels to add (often used in package rules).
|
|
114
|
+
"keepUpdatedLabel",
|
|
115
|
+
// string: Label indicating a PR should be kept up-to-date by Renovate, even if tests fail.
|
|
116
|
+
"rebaseLabel",
|
|
117
|
+
// string: Label that triggers Renovate to rebase the PR.
|
|
118
|
+
"stopUpdatingLabel"
|
|
119
|
+
// string: Label that tells Renovate to stop updating a specific PR.
|
|
120
|
+
],
|
|
121
|
+
// --- Dependency Filtering and Matching ---
|
|
122
|
+
filtering: [
|
|
123
|
+
"ignoreDeps",
|
|
124
|
+
// string[]: List of dependency names to ignore completely.
|
|
125
|
+
"ignorePaths",
|
|
126
|
+
// string[]: List of file paths or glob patterns to ignore during scanning.
|
|
127
|
+
"includePaths",
|
|
128
|
+
// string[]: List of file paths or glob patterns to explicitly include (if others are ignored).
|
|
129
|
+
"fileMatch",
|
|
130
|
+
// string[]: Glob patterns for matching dependency files.
|
|
131
|
+
"respectLatest",
|
|
132
|
+
// boolean: Whether to strictly respect the 'latest' tag instead of potentially newer versions.
|
|
133
|
+
"ignoreTests"
|
|
134
|
+
// boolean: Option to ignore dependencies typically found only in test/development scopes.
|
|
135
|
+
],
|
|
136
|
+
// --- Advanced / Less Common ---
|
|
137
|
+
advanced: [
|
|
138
|
+
"postUpgradeTasks",
|
|
139
|
+
// PostUpgradeTasks: Defines commands or scripts to run after dependency upgrades.
|
|
140
|
+
"npmrc",
|
|
141
|
+
// string: Allows providing custom .npmrc content for Renovate's operations.
|
|
142
|
+
"npmrcMerge",
|
|
143
|
+
// boolean: Whether to merge provided npmrc content with existing files.
|
|
144
|
+
"changelogUrl",
|
|
145
|
+
// string: A custom URL template for linking to changelogs.
|
|
146
|
+
"gitIgnoredAuthors",
|
|
147
|
+
// string[]: List of git commit authors whose commits should be ignored by Renovate (e.g., bots).
|
|
148
|
+
"unicodeEmoji",
|
|
149
|
+
// boolean: Use Unicode emojis (e.g., ✨) instead of text alternatives (e.g., :sparkles:).
|
|
150
|
+
"suppressNotifications",
|
|
151
|
+
// string[]: List of notification types to suppress.
|
|
152
|
+
"productLinks",
|
|
153
|
+
// Record<string, string>: Custom links for product documentation shown in PRs.
|
|
154
|
+
"rebaseWhen"
|
|
155
|
+
// string ('auto', 'behind-base-branch', 'conflicted', 'never'): Conditions under which Renovate should rebase PRs.
|
|
156
|
+
// 'manager', // string: Usually context-specific, identifies the package manager being used.
|
|
157
|
+
// 'repository', // string: Usually context-specific, the name of the repository.
|
|
158
|
+
// 'repositoryCache', // RepositoryCacheConfig: Configuration for caching repository data.
|
|
159
|
+
// 'repositoryCacheType', // RepositoryCacheType: Type of repository cache ('local', 'shared', etc.).
|
|
160
|
+
// 'autoReplaceGlobalMatch',// boolean: Advanced feature related to global replacements (less common).
|
|
161
|
+
// 'force', // RenovateConfig: Allows forcing specific configurations, overriding others (use with caution).
|
|
162
|
+
]
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
export { renovateSharedConfig };
|
|
166
|
+
//# sourceMappingURL=chunk-IW6EN63T.js.map
|
|
167
|
+
//# sourceMappingURL=chunk-IW6EN63T.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/rules/renovate-json/base/renovate-shared-config.ts"],"names":[],"mappings":";AAEO,IAAM,oBAAuB,GAAA;AAAA;AAAA,EAElC,MAAQ,EAAA;AAAA,IACN,SAAA;AAAA;AAAA,IACA,SAAA;AAAA;AAAA,IACA,SAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,mBAAqB,EAAA;AAAA,IACnB;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,QAAU,EAAA;AAAA,IACR,UAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,SAAW,EAAA;AAAA,IACT,WAAA;AAAA;AAAA,IACA,eAAA;AAAA;AAAA,IACA,mBAAA;AAAA;AAAA,IACA,mBAAA;AAAA;AAAA,IACA,yBAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,MAAQ,EAAA;AAAA,IACN,cAAA;AAAA;AAAA,IACA,YAAA;AAAA;AAAA,IACA,kBAAA;AAAA;AAAA,IACA,oBAAA;AAAA;AAAA,IACA;AAAA;AAAA;AAAA,GAEF;AAAA;AAAA,EAGA,QAAU,EAAA;AAAA,IACR,OAAA;AAAA;AAAA,IACA,WAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,MAAQ,EAAA;AAAA,IACN,iBAAA;AAAA;AAAA,IACA,oBAAA;AAAA;AAAA,IACA,qBAAA;AAAA;AAAA,IACA,qBAAA;AAAA;AAAA,IACA,eAAA;AAAA;AAAA,IACA,qBAAA;AAAA;AAAA,IACA,oBAAA;AAAA;AAAA,IACA,oBAAA;AAAA;AAAA,IACA,wBAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,EAAI,EAAA;AAAA,IACF,YAAA;AAAA;AAAA,IACA,SAAA;AAAA;AAAA,IACA,gBAAA;AAAA;AAAA,IACA,cAAA;AAAA;AAAA,IACA,eAAA;AAAA;AAAA,IACA,mBAAA;AAAA;AAAA,IACA,YAAA;AAAA;AAAA,IACA,cAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,MAAQ,EAAA;AAAA,IACN,QAAA;AAAA;AAAA,IACA,WAAA;AAAA;AAAA,IACA,kBAAA;AAAA;AAAA,IACA,aAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,SAAW,EAAA;AAAA,IACT,YAAA;AAAA;AAAA,IACA,aAAA;AAAA;AAAA,IACA,cAAA;AAAA;AAAA,IACA,WAAA;AAAA;AAAA,IACA,eAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,QAAU,EAAA;AAAA,IACR,kBAAA;AAAA;AAAA,IACA,OAAA;AAAA;AAAA,IACA,YAAA;AAAA;AAAA,IACA,cAAA;AAAA;AAAA,IACA,mBAAA;AAAA;AAAA,IACA,cAAA;AAAA;AAAA,IACA,uBAAA;AAAA;AAAA,IACA,cAAA;AAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQJ","file":"chunk-IW6EN63T.js","sourcesContent":["import type { JsoncSortKeysOrderMap } from './types';\n\nexport const renovateSharedConfig = {\n // --- Core Configuration ---\n config: [\n '$schema', // string: Reference to the JSON schema for validation.\n 'extends', // string[]: Specifies configuration presets to inherit from.\n 'enabled', // boolean: Enables or disables Renovate for the repository or rule.\n 'enabledManagers', // string[]: List of package managers to enable (e.g., [\"npm\", \"docker\"]).\n ],\n\n // --- Dependency Dashboard ---\n dependencyDashboard: [\n 'dependencyDashboardApproval', // boolean: Requires manual approval via the Dependency Dashboard checkbox before a PR is created.\n ],\n\n // --- Scheduling and Timezone ---\n schedule: [\n 'schedule', // string[]: Defines when Renovate should run using cron syntax or presets.\n 'timezone', // string: Timezone to use for scheduling (e.g., \"UTC\", \"America/New_York\").\n ],\n\n // --- Automerge ---\n automerge: [\n 'automerge', // boolean: Enables automatic merging of PRs when conditions are met.\n 'automergeType', // 'pr' | 'branch-push' | 'pr-comment': Specifies the automerge mechanism. Deprecated/renamed? (Note: Not in original list, added for context, potentially maps to other settings).\n 'automergeStrategy', // MergeStrategy ('auto', 'merge', 'rebase', 'squash'): The merge strategy to use for automerging.\n 'automergeSchedule', // string[]: Schedules automerging attempts independently of PR updates.\n 'internalChecksAsSuccess', // boolean: Considers Renovate's internal checks as successful for automerge status checks.\n 'platformAutomerge', // boolean: Use the platform's native automerge feature if available. (Note: Not in original list, but common).\n ],\n\n // --- Branch Management ---\n branch: [\n 'branchPrefix', // string: Prefix added to all Renovate-created branches.\n 'branchName', // string: Template for naming Renovate branches.\n 'branchNameStrict', // boolean: If true, enforces stricter validation for branch names.\n 'hashedBranchLength', // number: Length of the hash appended to branch names when needed.\n 'pruneBranchAfterAutomerge', // boolean: Automatically delete the branch after a PR is automerged.\n // 'branchPrefixOld', // string: Potentially deprecated or for specific migration scenarios.\n ],\n\n // --- Grouping Dependencies ---\n grouping: [\n 'group', // GroupConfig: More detailed configuration for grouping dependencies.\n 'groupName', // string: A custom name for a group of dependencies updated together in one PR.\n 'groupSlug', // string: A URL-friendly slug for the group name.\n ],\n\n // --- Commit Management ---\n commit: [\n 'semanticCommits', // 'auto' | 'enabled' | 'disabled': Controls the use of semantic commit messages.\n 'semanticCommitType', // string: The type used in semantic commits (e.g., \"fix\", \"chore\").\n 'semanticCommitScope', // string | null: The scope used in semantic commits.\n 'commitMessagePrefix', // string: Prefix added to all commit messages.\n 'commitMessage', // string: Template for the commit message body.\n 'commitMessageAction', // string: Action part of the commit message (e.g., \"Update\", \"Pin\").\n 'commitMessageTopic', // string: Topic part of the commit message (e.g., dependency name).\n 'commitMessageExtra', // string: Additional details appended to the commit message.\n 'commitMessageLowerCase', // 'auto' | 'never': Controls the casing of the commit message header.\n 'platformCommit', // PlatformCommitOptions: Platform-specific commit options.\n ],\n\n // --- Pull Request (PR) Management ---\n pr: [\n 'prCreation', // 'immediate' | 'not-pending' | 'status-success' | 'approval': Controls when PRs are created based on checks/approvals.\n 'draftPR', // boolean: Creates PRs as drafts initially.\n 'recreateClosed', // boolean: Recreate PRs if they were manually closed without merging.\n 'recreateWhen', // RecreateWhen: Specifies conditions under which closed PRs should be recreated.\n 'prBodyColumns', // string[]: Specifies which columns to include in the PR body's dependency table.\n 'prBodyDefinitions', // Record<string, string>: Custom definitions/text for sections within the PR body.\n 'prPriority', // number: Sets a priority level for the PR (platform-dependent).\n 'confidential', // boolean: Marks the PR as confidential (platform-dependent, e.g., GitLab).\n 'milestone', // number: Assigns the PR to a specific milestone number.\n ],\n\n // --- Labels ---\n labels: [\n 'labels', // string[]: List of labels to be added to created PRs.\n 'addLabels', // string[]: Additional labels to add (often used in package rules).\n 'keepUpdatedLabel', // string: Label indicating a PR should be kept up-to-date by Renovate, even if tests fail.\n 'rebaseLabel', // string: Label that triggers Renovate to rebase the PR.\n 'stopUpdatingLabel', // string: Label that tells Renovate to stop updating a specific PR.\n ],\n\n // --- Dependency Filtering and Matching ---\n filtering: [\n 'ignoreDeps', // string[]: List of dependency names to ignore completely.\n 'ignorePaths', // string[]: List of file paths or glob patterns to ignore during scanning.\n 'includePaths', // string[]: List of file paths or glob patterns to explicitly include (if others are ignored).\n 'fileMatch', // string[]: Glob patterns for matching dependency files.\n 'respectLatest', // boolean: Whether to strictly respect the 'latest' tag instead of potentially newer versions.\n 'ignoreTests', // boolean: Option to ignore dependencies typically found only in test/development scopes.\n ],\n\n // --- Advanced / Less Common ---\n advanced: [\n 'postUpgradeTasks', // PostUpgradeTasks: Defines commands or scripts to run after dependency upgrades.\n 'npmrc', // string: Allows providing custom .npmrc content for Renovate's operations.\n 'npmrcMerge', // boolean: Whether to merge provided npmrc content with existing files.\n 'changelogUrl', // string: A custom URL template for linking to changelogs.\n 'gitIgnoredAuthors', // string[]: List of git commit authors whose commits should be ignored by Renovate (e.g., bots).\n 'unicodeEmoji', // boolean: Use Unicode emojis (e.g., ✨) instead of text alternatives (e.g., :sparkles:).\n 'suppressNotifications', // string[]: List of notification types to suppress.\n 'productLinks', // Record<string, string>: Custom links for product documentation shown in PRs.\n 'rebaseWhen', // string ('auto', 'behind-base-branch', 'conflicted', 'never'): Conditions under which Renovate should rebase PRs.\n // 'manager', // string: Usually context-specific, identifies the package manager being used.\n // 'repository', // string: Usually context-specific, the name of the repository.\n // 'repositoryCache', // RepositoryCacheConfig: Configuration for caching repository data.\n // 'repositoryCacheType', // RepositoryCacheType: Type of repository cache ('local', 'shared', etc.).\n // 'autoReplaceGlobalMatch',// boolean: Advanced feature related to global replacements (less common).\n // 'force', // RenovateConfig: Allows forcing specific configurations, overriding others (use with caution).\n ],\n} as const satisfies JsoncSortKeysOrderMap;\n"]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkRCWWFUNP_cjs = require('./chunk-RCWWFUNP.cjs');
|
|
4
|
+
var chunkLTO3ELVV_cjs = require('./chunk-LTO3ELVV.cjs');
|
|
5
|
+
|
|
6
|
+
// src/rules/renovate-json/index.ts
|
|
7
|
+
var renovateJsonRules = {
|
|
8
|
+
name: "culur/renovate-json/rules",
|
|
9
|
+
files: [
|
|
10
|
+
// https://docs.renovatebot.com/configuration-options/#configuration-options
|
|
11
|
+
"renovate.json",
|
|
12
|
+
"renovate.json5",
|
|
13
|
+
".github/renovate.json",
|
|
14
|
+
".github/renovate.json5",
|
|
15
|
+
".gitlab/renovate.json",
|
|
16
|
+
".gitlab/renovate.json5",
|
|
17
|
+
".renovaterc",
|
|
18
|
+
".renovaterc.json",
|
|
19
|
+
".renovaterc.json5"
|
|
20
|
+
],
|
|
21
|
+
rules: {
|
|
22
|
+
"jsonc/sort-keys": [
|
|
23
|
+
"error",
|
|
24
|
+
{
|
|
25
|
+
pathPattern: "^$",
|
|
26
|
+
order: chunkLTO3ELVV_cjs.rootOrder
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
pathPattern: "^packageRules\\[\\d+\\]$",
|
|
30
|
+
order: chunkRCWWFUNP_cjs.packageRuleOrder
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
exports.renovateJsonRules = renovateJsonRules;
|
|
37
|
+
//# sourceMappingURL=chunk-IZ6BHA77.cjs.map
|
|
38
|
+
//# sourceMappingURL=chunk-IZ6BHA77.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/rules/renovate-json/index.ts"],"names":["rootOrder","packageRuleOrder"],"mappings":";;;;;;AAIO,IAAM,iBAAyC,GAAA;AAAA,EACpD,IAAM,EAAA,2BAAA;AAAA,EACN,KAAO,EAAA;AAAA;AAAA,IAEL,eAAA;AAAA,IACA,gBAAA;AAAA,IACA,uBAAA;AAAA,IACA,wBAAA;AAAA,IACA,uBAAA;AAAA,IACA,wBAAA;AAAA,IACA,aAAA;AAAA,IACA,kBAAA;AAAA,IACA;AAAA,GACF;AAAA,EACA,KAAO,EAAA;AAAA,IACL,iBAAmB,EAAA;AAAA,MACjB,OAAA;AAAA,MACA;AAAA,QACE,WAAa,EAAA,IAAA;AAAA,QACb,KAAO,EAAAA;AAAA,OACT;AAAA,MACA;AAAA,QACE,WAAa,EAAA,0BAAA;AAAA,QACb,KAAO,EAAAC;AAAA;AACT;AACF;AAEJ","file":"chunk-IZ6BHA77.cjs","sourcesContent":["import type { TypedFlatConfigItem } from '@antfu/eslint-config';\nimport { packageRuleOrder } from './order/package-rule';\nimport { rootOrder } from './order/root';\n\nexport const renovateJsonRules: TypedFlatConfigItem = {\n name: 'culur/renovate-json/rules',\n files: [\n // https://docs.renovatebot.com/configuration-options/#configuration-options\n 'renovate.json',\n 'renovate.json5',\n '.github/renovate.json',\n '.github/renovate.json5',\n '.gitlab/renovate.json',\n '.gitlab/renovate.json5',\n '.renovaterc',\n '.renovaterc.json',\n '.renovaterc.json5',\n ],\n rules: {\n 'jsonc/sort-keys': [\n 'error',\n {\n pathPattern: '^$',\n order: rootOrder,\n },\n {\n pathPattern: '^packageRules\\\\[\\\\d+\\\\]$',\n order: packageRuleOrder,\n },\n ],\n },\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/types/index.ts"],"names":[],"mappings":";AAca,IAAA,cAAA,GAAiB,CAAC,MAC7B,KAAA;AAAA,EACE,MAAO,CAAA,IAAA;AAAA,EACP,eAAmB,IAAA,MAAA,GAAS,MAAO,CAAA,aAAA,GAAgB,MAAO,CAAA;AAC5D","file":"chunk-L7ZLPRIG.js","sourcesContent":["import type {\n Awaitable,\n Rules,\n TypedFlatConfigItem,\n} from '@antfu/eslint-config';\nimport type { Linter } from 'eslint';\n\nexport type OverrideConfig = {\n name: NonNullable<TypedFlatConfigItem['name']>;\n} & (\n | { partialConfig: TypedFlatConfigItem } // merge with the original config\n | { entireConfig: () => Awaitable<TypedFlatConfigItem> } // replace the entire config\n);\n\nexport const defineOverride = (config: OverrideConfig) =>\n [\n config.name,\n 'partialConfig' in config ? config.partialConfig : config.entireConfig,\n ] as const;\n\nexport type RuleEntry<T extends keyof Rules> = Rules[T] extends\n | Linter.RuleEntry<infer F>\n | undefined\n ? F\n : never;\n"]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk57VLPYOX_cjs = require('./chunk-57VLPYOX.cjs');
|
|
4
|
+
var chunkPLLR3GUB_cjs = require('./chunk-PLLR3GUB.cjs');
|
|
5
|
+
var chunkN23I5XG5_cjs = require('./chunk-N23I5XG5.cjs');
|
|
6
|
+
var chunk7E5Q2JAD_cjs = require('./chunk-7E5Q2JAD.cjs');
|
|
7
|
+
var chunkIDYE4YOL_cjs = require('./chunk-IDYE4YOL.cjs');
|
|
8
|
+
var chunkVQCPNYZY_cjs = require('./chunk-VQCPNYZY.cjs');
|
|
9
|
+
|
|
10
|
+
// src/rules/renovate-json/order/root.ts
|
|
11
|
+
var rootOrder = [
|
|
12
|
+
//? core config
|
|
13
|
+
...chunk57VLPYOX_cjs.renovateSharedConfig.config,
|
|
14
|
+
...chunkVQCPNYZY_cjs.renovateConfig.metadata,
|
|
15
|
+
...chunkVQCPNYZY_cjs.renovateConfig.repository,
|
|
16
|
+
...chunkVQCPNYZY_cjs.renovateConfig.forkHandling,
|
|
17
|
+
...chunk57VLPYOX_cjs.renovateSharedConfig.branch,
|
|
18
|
+
//? migration & dashboard
|
|
19
|
+
...chunk7E5Q2JAD_cjs.configMigration,
|
|
20
|
+
...chunkVQCPNYZY_cjs.renovateConfig.dependencyDashboard,
|
|
21
|
+
...chunk57VLPYOX_cjs.renovateSharedConfig.dependencyDashboard,
|
|
22
|
+
//? schedule
|
|
23
|
+
...chunk57VLPYOX_cjs.renovateSharedConfig.schedule,
|
|
24
|
+
...chunk57VLPYOX_cjs.renovateSharedConfig.automerge,
|
|
25
|
+
...chunkVQCPNYZY_cjs.renovateConfig.limits,
|
|
26
|
+
//? grouping
|
|
27
|
+
...chunk57VLPYOX_cjs.renovateSharedConfig.grouping,
|
|
28
|
+
...chunk57VLPYOX_cjs.renovateSharedConfig.commit,
|
|
29
|
+
...chunk57VLPYOX_cjs.renovateSharedConfig.pr,
|
|
30
|
+
...chunk57VLPYOX_cjs.renovateSharedConfig.labels,
|
|
31
|
+
...chunk57VLPYOX_cjs.renovateSharedConfig.filtering,
|
|
32
|
+
...chunkVQCPNYZY_cjs.renovateConfig.namingSpecifics,
|
|
33
|
+
...chunkN23I5XG5_cjs.assigneesAndReviewersConfig.assignees,
|
|
34
|
+
...chunkN23I5XG5_cjs.assigneesAndReviewersConfig.reviewers,
|
|
35
|
+
...chunkN23I5XG5_cjs.assigneesAndReviewersConfig.common,
|
|
36
|
+
//? registriesNetwork
|
|
37
|
+
...chunkVQCPNYZY_cjs.renovateConfig.registriesNetwork,
|
|
38
|
+
//? vulnerabilities
|
|
39
|
+
...chunkVQCPNYZY_cjs.renovateConfig.vulnerabilities,
|
|
40
|
+
...chunkVQCPNYZY_cjs.renovateConfig.vulnerabilitiesShared,
|
|
41
|
+
//? rarely
|
|
42
|
+
...chunk57VLPYOX_cjs.renovateSharedConfig.advanced,
|
|
43
|
+
...chunkVQCPNYZY_cjs.renovateConfig.customization,
|
|
44
|
+
...chunkVQCPNYZY_cjs.renovateConfig.reporting,
|
|
45
|
+
...chunkVQCPNYZY_cjs.renovateConfig.inheritance,
|
|
46
|
+
...chunkVQCPNYZY_cjs.renovateConfig.processControl,
|
|
47
|
+
...chunkVQCPNYZY_cjs.renovateConfig.constraints,
|
|
48
|
+
...chunkVQCPNYZY_cjs.renovateConfig.internalContext,
|
|
49
|
+
...chunkIDYE4YOL_cjs.legacyAdminConfig.onboarding,
|
|
50
|
+
...chunkIDYE4YOL_cjs.legacyAdminConfig.executionLogging,
|
|
51
|
+
...chunkIDYE4YOL_cjs.legacyAdminConfig.configurationRequirements,
|
|
52
|
+
//? overrides
|
|
53
|
+
...chunkPLLR3GUB_cjs.updateConfig.semantic_versioning,
|
|
54
|
+
...chunkPLLR3GUB_cjs.updateConfig.pinning_digests,
|
|
55
|
+
...chunkPLLR3GUB_cjs.updateConfig.lock_file,
|
|
56
|
+
...chunkPLLR3GUB_cjs.updateConfig.special_cases,
|
|
57
|
+
...chunkVQCPNYZY_cjs.renovateConfig.packageRules
|
|
58
|
+
];
|
|
59
|
+
|
|
60
|
+
exports.rootOrder = rootOrder;
|
|
61
|
+
//# sourceMappingURL=chunk-LTO3ELVV.cjs.map
|
|
62
|
+
//# sourceMappingURL=chunk-LTO3ELVV.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/rules/renovate-json/order/root.ts"],"names":["renovateSharedConfig","renovateConfig","configMigration","assigneesAndReviewersConfig","legacyAdminConfig","updateConfig"],"mappings":";;;;;;;;;;AAcO,IAAM,SAAY,GAAA;AAAA;AAAA,EAEvB,GAAGA,sCAAqB,CAAA,MAAA;AAAA,EACxB,GAAGC,gCAAe,CAAA,QAAA;AAAA,EAClB,GAAGA,gCAAe,CAAA,UAAA;AAAA,EAClB,GAAGA,gCAAe,CAAA,YAAA;AAAA,EAClB,GAAGD,sCAAqB,CAAA,MAAA;AAAA;AAAA,EAGxB,GAAGE,iCAAA;AAAA,EACH,GAAGD,gCAAe,CAAA,mBAAA;AAAA,EAClB,GAAGD,sCAAqB,CAAA,mBAAA;AAAA;AAAA,EAGxB,GAAGA,sCAAqB,CAAA,QAAA;AAAA,EACxB,GAAGA,sCAAqB,CAAA,SAAA;AAAA,EACxB,GAAGC,gCAAe,CAAA,MAAA;AAAA;AAAA,EAGlB,GAAGD,sCAAqB,CAAA,QAAA;AAAA,EACxB,GAAGA,sCAAqB,CAAA,MAAA;AAAA,EACxB,GAAGA,sCAAqB,CAAA,EAAA;AAAA,EACxB,GAAGA,sCAAqB,CAAA,MAAA;AAAA,EACxB,GAAGA,sCAAqB,CAAA,SAAA;AAAA,EACxB,GAAGC,gCAAe,CAAA,eAAA;AAAA,EAClB,GAAGE,6CAA4B,CAAA,SAAA;AAAA,EAC/B,GAAGA,6CAA4B,CAAA,SAAA;AAAA,EAC/B,GAAGA,6CAA4B,CAAA,MAAA;AAAA;AAAA,EAG/B,GAAGF,gCAAe,CAAA,iBAAA;AAAA;AAAA,EAGlB,GAAGA,gCAAe,CAAA,eAAA;AAAA,EAClB,GAAGA,gCAAe,CAAA,qBAAA;AAAA;AAAA,EAGlB,GAAGD,sCAAqB,CAAA,QAAA;AAAA,EACxB,GAAGC,gCAAe,CAAA,aAAA;AAAA,EAClB,GAAGA,gCAAe,CAAA,SAAA;AAAA,EAClB,GAAGA,gCAAe,CAAA,WAAA;AAAA,EAClB,GAAGA,gCAAe,CAAA,cAAA;AAAA,EAClB,GAAGA,gCAAe,CAAA,WAAA;AAAA,EAClB,GAAGA,gCAAe,CAAA,eAAA;AAAA,EAClB,GAAGG,mCAAkB,CAAA,UAAA;AAAA,EACrB,GAAGA,mCAAkB,CAAA,gBAAA;AAAA,EACrB,GAAGA,mCAAkB,CAAA,yBAAA;AAAA;AAAA,EAGrB,GAAGC,8BAAa,CAAA,mBAAA;AAAA,EAChB,GAAGA,8BAAa,CAAA,eAAA;AAAA,EAChB,GAAGA,8BAAa,CAAA,SAAA;AAAA,EAChB,GAAGA,8BAAa,CAAA,aAAA;AAAA,EAChB,GAAGJ,gCAAe,CAAA;AACpB","file":"chunk-LTO3ELVV.cjs","sourcesContent":["import type { JsoncSortKeysOrder } from '../base/types';\nimport { assigneesAndReviewersConfig } from '../base/assignees-and-reviewers-config';\nimport { configMigration } from '../base/config-migration';\nimport { legacyAdminConfig } from '../base/legacy-admin-config';\nimport { renovateConfig } from '../base/renovate-config';\nimport { renovateSharedConfig } from '../base/renovate-shared-config';\nimport { updateConfig } from '../base/update-config';\n\n// RenovateConfig\n// LegacyAdminConfig,\n// RenovateSharedConfig,\n// UpdateConfig<PackageRule>,\n// AssigneesAndReviewersConfig,\n// ConfigMigration,\nexport const rootOrder = [\n //? core config\n ...renovateSharedConfig.config,\n ...renovateConfig.metadata,\n ...renovateConfig.repository,\n ...renovateConfig.forkHandling,\n ...renovateSharedConfig.branch,\n\n //? migration & dashboard\n ...configMigration,\n ...renovateConfig.dependencyDashboard,\n ...renovateSharedConfig.dependencyDashboard,\n\n //? schedule\n ...renovateSharedConfig.schedule,\n ...renovateSharedConfig.automerge,\n ...renovateConfig.limits,\n\n //? grouping\n ...renovateSharedConfig.grouping,\n ...renovateSharedConfig.commit,\n ...renovateSharedConfig.pr,\n ...renovateSharedConfig.labels,\n ...renovateSharedConfig.filtering,\n ...renovateConfig.namingSpecifics,\n ...assigneesAndReviewersConfig.assignees,\n ...assigneesAndReviewersConfig.reviewers,\n ...assigneesAndReviewersConfig.common,\n\n //? registriesNetwork\n ...renovateConfig.registriesNetwork,\n\n //? vulnerabilities\n ...renovateConfig.vulnerabilities,\n ...renovateConfig.vulnerabilitiesShared,\n\n //? rarely\n ...renovateSharedConfig.advanced,\n ...renovateConfig.customization,\n ...renovateConfig.reporting,\n ...renovateConfig.inheritance,\n ...renovateConfig.processControl,\n ...renovateConfig.constraints,\n ...renovateConfig.internalContext,\n ...legacyAdminConfig.onboarding,\n ...legacyAdminConfig.executionLogging,\n ...legacyAdminConfig.configurationRequirements,\n\n //? overrides\n ...updateConfig.semantic_versioning,\n ...updateConfig.pinning_digests,\n ...updateConfig.lock_file,\n ...updateConfig.special_cases,\n ...renovateConfig.packageRules,\n] as const as JsoncSortKeysOrder;\n"]}
|
|
@@ -7,5 +7,5 @@ var defineOverride = (config) => [
|
|
|
7
7
|
];
|
|
8
8
|
|
|
9
9
|
exports.defineOverride = defineOverride;
|
|
10
|
-
//# sourceMappingURL=chunk-
|
|
11
|
-
//# sourceMappingURL=chunk-
|
|
10
|
+
//# sourceMappingURL=chunk-LYCFRD6B.cjs.map
|
|
11
|
+
//# sourceMappingURL=chunk-LYCFRD6B.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/types/index.ts"],"names":[],"mappings":";;;AAca,IAAA,cAAA,GAAiB,CAAC,MAC7B,KAAA;AAAA,EACE,MAAO,CAAA,IAAA;AAAA,EACP,eAAmB,IAAA,MAAA,GAAS,MAAO,CAAA,aAAA,GAAgB,MAAO,CAAA;AAC5D","file":"chunk-LYCFRD6B.cjs","sourcesContent":["import type {\n Awaitable,\n Rules,\n TypedFlatConfigItem,\n} from '@antfu/eslint-config';\nimport type { Linter } from 'eslint';\n\nexport type OverrideConfig = {\n name: NonNullable<TypedFlatConfigItem['name']>;\n} & (\n | { partialConfig: TypedFlatConfigItem } // merge with the original config\n | { entireConfig: () => Awaitable<TypedFlatConfigItem> } // replace the entire config\n);\n\nexport const defineOverride = (config: OverrideConfig) =>\n [\n config.name,\n 'partialConfig' in config ? config.partialConfig : config.entireConfig,\n ] as const;\n\nexport type RuleEntry<T extends keyof Rules> = Rules[T] extends\n | Linter.RuleEntry<infer F>\n | undefined\n ? F\n : never;\n"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/rules/renovate-json/base/assignees-and-reviewers-config.ts
|
|
4
|
+
var assigneesAndReviewersConfig = {
|
|
5
|
+
// --- Assignees ---
|
|
6
|
+
assignees: [
|
|
7
|
+
"assignees",
|
|
8
|
+
// string[]: Explicit list of usernames to assign to the PR.
|
|
9
|
+
"assigneesFromCodeOwners",
|
|
10
|
+
// boolean: Assign users listed as owners in the CODEOWNERS file.
|
|
11
|
+
"assigneesSampleSize"
|
|
12
|
+
// number: Select a random sample of this size from the potential assignees (either from `assignees` list or CODEOWNERS). [1]
|
|
13
|
+
],
|
|
14
|
+
// --- Reviewers ---
|
|
15
|
+
reviewers: [
|
|
16
|
+
"reviewers",
|
|
17
|
+
// string[]: Explicit list of usernames to request reviews from.
|
|
18
|
+
"reviewersFromCodeOwners",
|
|
19
|
+
// boolean: Request reviews from users listed as owners in the CODEOWNERS file.
|
|
20
|
+
"reviewersSampleSize",
|
|
21
|
+
// number: Select a random sample of this size from the potential reviewers (either from `reviewers` list or CODEOWNERS).
|
|
22
|
+
"additionalReviewers",
|
|
23
|
+
// string[]: Add these users as reviewers *in addition* to any specified in `reviewers` or derived from CODEOWNERS. Useful for adding specific reviewers in package rules without overriding the base list. [14]
|
|
24
|
+
"ignoreReviewers"
|
|
25
|
+
// string[]: List of usernames that should *not* be added as reviewers, even if they are in the `reviewers` list or CODEOWNERS. Useful for filtering out bots or users on leave. [2]
|
|
26
|
+
],
|
|
27
|
+
// --- Common / Helper Options ---
|
|
28
|
+
common: [
|
|
29
|
+
"expandCodeOwnersGroups",
|
|
30
|
+
// boolean: If true, Renovate expands CODEOWNERS groups (like `@org/team`) into individual members before applying logic like `reviewersSampleSize`. Supported on GitLab [3, 4, 6] and potentially other platforms supporting group expansion [1].
|
|
31
|
+
"filterUnavailableUsers"
|
|
32
|
+
// boolean: (Note: Supported on GitLab [3, 5]) Check if assigned/requested users are actually available/have access on the platform before adding them. [3, 5, 8, 12, 13] Prevents errors if a listed user doesn't exist or can't access the repository.
|
|
33
|
+
// 'assignAutomerge', // boolean: (Note: From [14], likely deprecated or less common) Assign reviewers/assignees even if automerge is enabled. Default Renovate behavior is *not* to add assignees/reviewers if automerge is set, to reduce noise, unless the PR fails checks. [2, 7]
|
|
34
|
+
]
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
exports.assigneesAndReviewersConfig = assigneesAndReviewersConfig;
|
|
38
|
+
//# sourceMappingURL=chunk-N23I5XG5.cjs.map
|
|
39
|
+
//# sourceMappingURL=chunk-N23I5XG5.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/rules/renovate-json/base/assignees-and-reviewers-config.ts"],"names":[],"mappings":";;;AAEO,IAAM,2BAA8B,GAAA;AAAA;AAAA,EAEzC,SAAW,EAAA;AAAA,IACT,WAAA;AAAA;AAAA,IACA,yBAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,SAAW,EAAA;AAAA,IACT,WAAA;AAAA;AAAA,IACA,yBAAA;AAAA;AAAA,IACA,qBAAA;AAAA;AAAA,IACA,qBAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,MAAQ,EAAA;AAAA,IACN,wBAAA;AAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAGJ","file":"chunk-N23I5XG5.cjs","sourcesContent":["import type { JsoncSortKeysOrderMap } from './types';\n\nexport const assigneesAndReviewersConfig = {\n // --- Assignees ---\n assignees: [\n 'assignees', // string[]: Explicit list of usernames to assign to the PR.\n 'assigneesFromCodeOwners', // boolean: Assign users listed as owners in the CODEOWNERS file.\n 'assigneesSampleSize', // number: Select a random sample of this size from the potential assignees (either from `assignees` list or CODEOWNERS). [1]\n ],\n\n // --- Reviewers ---\n reviewers: [\n 'reviewers', // string[]: Explicit list of usernames to request reviews from.\n 'reviewersFromCodeOwners', // boolean: Request reviews from users listed as owners in the CODEOWNERS file.\n 'reviewersSampleSize', // number: Select a random sample of this size from the potential reviewers (either from `reviewers` list or CODEOWNERS).\n 'additionalReviewers', // string[]: Add these users as reviewers *in addition* to any specified in `reviewers` or derived from CODEOWNERS. Useful for adding specific reviewers in package rules without overriding the base list. [14]\n 'ignoreReviewers', // string[]: List of usernames that should *not* be added as reviewers, even if they are in the `reviewers` list or CODEOWNERS. Useful for filtering out bots or users on leave. [2]\n ],\n\n // --- Common / Helper Options ---\n common: [\n 'expandCodeOwnersGroups', // boolean: If true, Renovate expands CODEOWNERS groups (like `@org/team`) into individual members before applying logic like `reviewersSampleSize`. Supported on GitLab [3, 4, 6] and potentially other platforms supporting group expansion [1].\n 'filterUnavailableUsers', // boolean: (Note: Supported on GitLab [3, 5]) Check if assigned/requested users are actually available/have access on the platform before adding them. [3, 5, 8, 12, 13] Prevents errors if a listed user doesn't exist or can't access the repository.\n // 'assignAutomerge', // boolean: (Note: From [14], likely deprecated or less common) Assign reviewers/assignees even if automerge is enabled. Default Renovate behavior is *not* to add assignees/reviewers if automerge is set, to reduce noise, unless the PR fails checks. [2, 7]\n ],\n} as const satisfies JsoncSortKeysOrderMap;\n"]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/rules/renovate-json/base/package-rule.ts
|
|
4
|
+
var packageRule = {
|
|
5
|
+
// --- Metadata ---
|
|
6
|
+
metadata: [
|
|
7
|
+
"description"
|
|
8
|
+
// string | string[]: Human-readable description of what this package rule does, useful for documenting complex configurations.
|
|
9
|
+
],
|
|
10
|
+
// --- Range Strategy ---
|
|
11
|
+
rangeStrategy: [
|
|
12
|
+
"rangeStrategy"
|
|
13
|
+
// 'auto' | 'pin' | 'bump' | 'replace' | 'widen' | 'update-lockfile' | 'in-range-only': Determines how to modify or update existing ranges
|
|
14
|
+
],
|
|
15
|
+
// --- Rule Matching Criteria (Core) ---
|
|
16
|
+
// These properties determine *which* dependencies or updates this rule applies to.
|
|
17
|
+
matching: [
|
|
18
|
+
"matchPackageNames",
|
|
19
|
+
// string[]: Apply rule if dependency name matches any in this list (e.g., ["react", "lodash"]).
|
|
20
|
+
"matchDepNames",
|
|
21
|
+
// string[]: Apply rule if dependency name matches (similar to matchPackageNames, can be broader).
|
|
22
|
+
"matchManagers",
|
|
23
|
+
// string[]: Apply rule if the dependency is managed by one of these package managers (e.g., ["npm", "docker"]).
|
|
24
|
+
"matchDatasources",
|
|
25
|
+
// string[]: Apply rule if the dependency's version source matches (e.g., ["npm", "git-tags", "docker"]).
|
|
26
|
+
"matchDepTypes",
|
|
27
|
+
// string[]: Apply rule if the dependency type matches (e.g., ["dependencies", "devDependencies", "peerDependencies"]).
|
|
28
|
+
"matchUpdateTypes",
|
|
29
|
+
// UpdateType[]: Apply rule based on the type of update (e.g., ["major", "minor", "patch", "pin", "digest"]).
|
|
30
|
+
"matchCategories",
|
|
31
|
+
// string[]: Apply rule if dependency belongs to specified categories (defined via extractConfigs or presets like "linters").
|
|
32
|
+
"matchCurrentVersion",
|
|
33
|
+
// string: Apply rule if the *currently installed* version matches this pattern (supports regex).
|
|
34
|
+
"matchSourceUrls",
|
|
35
|
+
// string[]: Apply rule if the dependency's source repository URL matches any pattern in the list.
|
|
36
|
+
"matchFileNames",
|
|
37
|
+
// string[]: Apply rule if the dependency is found in a file matching any pattern in this list.
|
|
38
|
+
"matchBaseBranches",
|
|
39
|
+
// string[]: Apply rule only when Renovate is running against one of these base branches.
|
|
40
|
+
"matchRepositories",
|
|
41
|
+
// string[]: Apply rule only when Renovate is running in a repository matching one of these names.
|
|
42
|
+
"matchCurrentValue",
|
|
43
|
+
// string: Apply rule if the current value (e.g., Docker tag) matches this pattern.
|
|
44
|
+
"matchNewValue",
|
|
45
|
+
// string: Apply rule if the proposed new value/version matches this pattern.
|
|
46
|
+
"matchCurrentAge",
|
|
47
|
+
// string: Apply rule based on how long the current version has been used (e.g., "> 3 months").
|
|
48
|
+
"matchConfidence",
|
|
49
|
+
// MergeConfidence[]: Apply rule based on Renovate's calculated merge confidence level (e.g., ["high", "very-high"]).
|
|
50
|
+
"matchJsonata"
|
|
51
|
+
// string[]: Advanced matching using JSONata queries against dependency metadata.
|
|
52
|
+
],
|
|
53
|
+
// --- Registry & Network Configuration ---
|
|
54
|
+
registriesNetwork: [
|
|
55
|
+
"registryUrls"
|
|
56
|
+
// string[] | null: Override the global or default registry URLs specifically for dependencies matched by this rule.
|
|
57
|
+
],
|
|
58
|
+
// --- Vulnerability Specific Matching ---
|
|
59
|
+
vulnerabilities: [
|
|
60
|
+
"isVulnerabilityAlert",
|
|
61
|
+
// boolean: (Note: Likely an internal flag set by Renovate, used to *match* rules against updates that *are* vulnerability fixes, rather than being set directly by the user). Apply rule if the update addresses a known vulnerability.
|
|
62
|
+
"vulnerabilityFixVersion"
|
|
63
|
+
// string: Apply rule if the vulnerability fix is targeting this specific version.
|
|
64
|
+
],
|
|
65
|
+
vulnerabilitiesShared: [
|
|
66
|
+
"vulnerabilitySeverity"
|
|
67
|
+
// string: Minimum vulnerability severity level to report or act upon (e.g., "high", "critical").
|
|
68
|
+
]
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
exports.packageRule = packageRule;
|
|
72
|
+
//# sourceMappingURL=chunk-NBGGFQGT.cjs.map
|
|
73
|
+
//# sourceMappingURL=chunk-NBGGFQGT.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/rules/renovate-json/base/package-rule.ts"],"names":[],"mappings":";;;AAEO,IAAM,WAAc,GAAA;AAAA;AAAA,EAEzB,QAAU,EAAA;AAAA,IACR;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,aAAe,EAAA;AAAA,IACb;AAAA;AAAA,GACF;AAAA;AAAA;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,mBAAA;AAAA;AAAA,IACA,eAAA;AAAA;AAAA,IACA,eAAA;AAAA;AAAA,IACA,kBAAA;AAAA;AAAA,IACA,eAAA;AAAA;AAAA,IACA,kBAAA;AAAA;AAAA,IACA,iBAAA;AAAA;AAAA,IACA,qBAAA;AAAA;AAAA,IACA,iBAAA;AAAA;AAAA,IACA,gBAAA;AAAA;AAAA,IACA,mBAAA;AAAA;AAAA,IACA,mBAAA;AAAA;AAAA,IACA,mBAAA;AAAA;AAAA,IACA,eAAA;AAAA;AAAA,IACA,iBAAA;AAAA;AAAA,IACA,iBAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,iBAAmB,EAAA;AAAA,IACjB;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,eAAiB,EAAA;AAAA,IACf,sBAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA,EACA,qBAAuB,EAAA;AAAA,IACrB;AAAA;AAAA;AAEJ","file":"chunk-NBGGFQGT.cjs","sourcesContent":["import type { JsoncSortKeysOrderMap } from './types';\n\nexport const packageRule = {\n // --- Metadata ---\n metadata: [\n 'description', // string | string[]: Human-readable description of what this package rule does, useful for documenting complex configurations.\n ],\n\n // --- Range Strategy ---\n rangeStrategy: [\n 'rangeStrategy', // 'auto' | 'pin' | 'bump' | 'replace' | 'widen' | 'update-lockfile' | 'in-range-only': Determines how to modify or update existing ranges\n ],\n\n // --- Rule Matching Criteria (Core) ---\n // These properties determine *which* dependencies or updates this rule applies to.\n matching: [\n 'matchPackageNames', // string[]: Apply rule if dependency name matches any in this list (e.g., [\"react\", \"lodash\"]).\n 'matchDepNames', // string[]: Apply rule if dependency name matches (similar to matchPackageNames, can be broader).\n 'matchManagers', // string[]: Apply rule if the dependency is managed by one of these package managers (e.g., [\"npm\", \"docker\"]).\n 'matchDatasources', // string[]: Apply rule if the dependency's version source matches (e.g., [\"npm\", \"git-tags\", \"docker\"]).\n 'matchDepTypes', // string[]: Apply rule if the dependency type matches (e.g., [\"dependencies\", \"devDependencies\", \"peerDependencies\"]).\n 'matchUpdateTypes', // UpdateType[]: Apply rule based on the type of update (e.g., [\"major\", \"minor\", \"patch\", \"pin\", \"digest\"]).\n 'matchCategories', // string[]: Apply rule if dependency belongs to specified categories (defined via extractConfigs or presets like \"linters\").\n 'matchCurrentVersion', // string: Apply rule if the *currently installed* version matches this pattern (supports regex).\n 'matchSourceUrls', // string[]: Apply rule if the dependency's source repository URL matches any pattern in the list.\n 'matchFileNames', // string[]: Apply rule if the dependency is found in a file matching any pattern in this list.\n 'matchBaseBranches', // string[]: Apply rule only when Renovate is running against one of these base branches.\n 'matchRepositories', // string[]: Apply rule only when Renovate is running in a repository matching one of these names.\n 'matchCurrentValue', // string: Apply rule if the current value (e.g., Docker tag) matches this pattern.\n 'matchNewValue', // string: Apply rule if the proposed new value/version matches this pattern.\n 'matchCurrentAge', // string: Apply rule based on how long the current version has been used (e.g., \"> 3 months\").\n 'matchConfidence', // MergeConfidence[]: Apply rule based on Renovate's calculated merge confidence level (e.g., [\"high\", \"very-high\"]).\n 'matchJsonata', // string[]: Advanced matching using JSONata queries against dependency metadata.\n ],\n\n // --- Registry & Network Configuration ---\n registriesNetwork: [\n 'registryUrls', // string[] | null: Override the global or default registry URLs specifically for dependencies matched by this rule.\n ],\n\n // --- Vulnerability Specific Matching ---\n vulnerabilities: [\n 'isVulnerabilityAlert', // boolean: (Note: Likely an internal flag set by Renovate, used to *match* rules against updates that *are* vulnerability fixes, rather than being set directly by the user). Apply rule if the update addresses a known vulnerability.\n 'vulnerabilityFixVersion', // string: Apply rule if the vulnerability fix is targeting this specific version.\n ],\n vulnerabilitiesShared: [\n 'vulnerabilitySeverity', // string: Minimum vulnerability severity level to report or act upon (e.g., \"high\", \"critical\").\n ],\n} as const satisfies JsoncSortKeysOrderMap;\n"]}
|