Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

treefmt: add formatjson5 #97

Merged
merged 2 commits into from
Jan 29, 2024
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
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

90 changes: 38 additions & 52 deletions renovate.json5
Original file line number Diff line number Diff line change
@@ -1,80 +1,66 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: [
":preserveSemverRanges",
"helpers:pinGitHubActionDigests",
":separateMajorReleases",
":semanticCommitsDisabled",
":separateMajorReleases",
"config:recommended",
"helpers:pinGitHubActionDigests",
],
"commitMessagePrefix": "deps:",
"commitMessageAction": "update",
"addLabels": [
"dependencies"
],
"postUpdateOptions": [
commitMessagePrefix: "deps:",
commitMessageAction: "update",
addLabels: [ "dependencies" ],
postUpdateOptions: [
"gomodTidy",
"gomodUpdateImportPaths"
"gomodUpdateImportPaths",
],
"prConcurrentLimit": 1,
"nix": {
"enabled": true,
prConcurrentLimit: 1,
nix: { enabled: true },
lockFileMaintenance: {
enabled: true,
commitMessageAction: "flake.lock: Update",
commitMessagePrefix: null,
schedule: [ "before 4am" ],
},
"lockFileMaintenance": {
"enabled": true,
"commitMessageAction": "flake.lock: Update",
"commitMessagePrefix": null,
"schedule": ["before 4am"],
},
"packageRules": [
packageRules: [
{
"matchManagers": ["gomod"],
"matchDepTypes": ["indirect"],
"enabled": true,
matchManagers: [ "gomod" ],
matchDepTypes: [ "indirect" ],
enabled: true,
},
{
"groupName": "Go indirect dependencies",
"matchManagers": [
"gomod"
],
"matchDepTypes": [
"indirect"
],
"prPriority": -30,
groupName: "Go indirect dependencies",
matchManagers: [ "gomod" ],
matchDepTypes: [ "indirect" ],
prPriority: -30,
},
{
"groupName": "Go dependencies",
"matchManagers": [
"gomod"
],
"matchDepTypes": [
"require"
],
"matchUpdateTypes": [
groupName: "Go dependencies",
matchManagers: [ "gomod" ],
matchDepTypes: [ "require" ],
matchUpdateTypes: [
"bump",
"digest",
"lockFileMaintenance",
"minor",
"patch",
"pin",
"pinDigest",
"digest",
"lockFileMaintenance",
"rollback",
"bump",
],
},
{
"matchManagers": [
"github-actions"
],
"groupName": "GitHub action dependencies",
"matchUpdateTypes": [
matchManagers: [ "github-actions" ],
groupName: "GitHub action dependencies",
matchUpdateTypes: [
"bump",
"digest",
"lockFileMaintenance",
"minor",
"patch",
"pin",
"pinDigest",
"digest",
"lockFileMaintenance",
"rollback",
"bump",
],
},
],
Expand Down
8 changes: 7 additions & 1 deletion treefmt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ _:
{
projectRootFile = "flake.nix";
programs = {
# keep-sorted start
# keep-sorted start block=true
deadnix.enable = true;
formatjson5 = {
enable = true;
indent = 2;
oneElementLines = true;
sortArrays = true;
};
just.enable = true;
keep-sorted.enable = true;
nixpkgs-fmt.enable = true;
Expand Down
Loading