Skip to content

Commit

Permalink
chore(default.json5): remove prettier ignore directives (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
risu729 authored Jan 2, 2025
1 parent a8b61a8 commit 9b2fee2
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions default.json5
Original file line number Diff line number Diff line change
Expand Up @@ -22,52 +22,44 @@
{
customType: "regex",
description: "Updates tool versions in mise.toml (default registry)",
// prettier-ignore
fileMatch: ["(^|/)\\.?mise\\.toml$", "(^|/)\\.?mise/config\\.toml$"],
// cspell:ignore datasource
datasourceTemplate: "{{#unless datasource}}github-releases{{else}}{{datasource}}{{/unless}}",
matchStrings: [
// test: https://regex101.com/r/8grHta
// prettier-ignore
"# renovate:(?: datasource=(?<datasource>.+?))?(?: packageName=(?<packageName>.+?))?(?: versioning=(?<versioning>.+?))?(?: extractVersion=(?<extractVersion>.+?))?\\n\"?(?<depName>[^:]+?)\"? *= *\"(?<currentValue>.+?)\"",
'# renovate:(?: datasource=(?<datasource>.+?))?(?: packageName=(?<packageName>.+?))?(?: versioning=(?<versioning>.+?))?(?: extractVersion=(?<extractVersion>.+?))?\\n"?(?<depName>[^:]+?)"? *= *"(?<currentValue>.+?)"',
],
},
// renovate does not support backends
// ref: https://github.com/renovatebot/renovate/issues/30387
{
customType: "regex",
description: "Updates tool versions in mise.toml (Cargo backend)",
// prettier-ignore
fileMatch: ["(^|/)\\.?mise\\.toml$", "(^|/)\\.?mise/config\\.toml$"],
datasourceTemplate: "crate",
matchStrings: [
// test: https://regex101.com/r/K6Imdx
// prettier-ignore
"\"cargo:(?<depName>.+?)\" *= *\"(?<currentValue>.+?)\"",
'"cargo:(?<depName>.+?)" *= *"(?<currentValue>.+?)"',
],
},
{
customType: "regex",
description: "Updates tool versions in mise.toml (npm backend)",
// prettier-ignore
fileMatch: ["(^|/)\\.?mise\\.toml$", "(^|/)\\.?mise/config\\.toml$"],
datasourceTemplate: "npm",
matchStrings: [
// test: https://regex101.com/r/avOpdb
// prettier-ignore
"\"npm:(?<depName>.+?)\" *= *\"(?<currentValue>.+?)\"",
'"npm:(?<depName>.+?)" *= *"(?<currentValue>.+?)"',
],
},
{
customType: "regex",
description: "Updates tool versions in mise.toml (ubi, aqua backend)",
// prettier-ignore
fileMatch: ["(^|/)\\.?mise\\.toml$", "(^|/)\\.?mise/config\\.toml$"],
datasourceTemplate: "github-releases",
matchStrings: [
// test: https://regex101.com/r/RRA3NI
// prettier-ignore
"(?:# renovate: extractVersion=(?<extractVersion>.+?)\\n)?\"(?:ubi|aqua):(?<depName>.+?)\" *= *\".*?(?<currentValue>\\d+\\..+?)\"",
'(?:# renovate: extractVersion=(?<extractVersion>.+?)\\n)?"(?:ubi|aqua):(?<depName>.+?)" *= *".*?(?<currentValue>\\d+\\..+?)"',
],
},
{
Expand All @@ -77,10 +69,7 @@
datasourceTemplate: "github-releases",
depNameTemplate: "mise",
packageNameTemplate: "jdx/mise",
matchStrings: [
// prettier-ignore
"min_version = \"(?<currentValue>.+)\"",
],
matchStrings: ['min_version = "(?<currentValue>.+)"'],
},
{
customType: "regex",
Expand All @@ -89,10 +78,7 @@
datasourceTemplate: "github-releases",
depNameTemplate: "mise",
packageNameTemplate: "jdx/mise",
matchStrings: [
// prettier-ignore
"version: (?<currentValue>.+)",
],
matchStrings: ["version: (?<currentValue>.+)"],
},
],
packageRules: [
Expand Down

0 comments on commit 9b2fee2

Please sign in to comment.