docs: update contributing/formatting/tools

This commit is contained in:
Skyler Grey 2024-05-19 12:42:59 +00:00 committed by Auxolotl Wiki
parent 03b97723ee
commit f8208711bb

View file

@ -2,7 +2,7 @@
title: Formatting tools title: Formatting tools
description: description:
published: true published: true
date: 2024-05-19T12:41:51.196Z date: 2024-05-19T12:42:57.904Z
tags: tags:
editor: markdown editor: markdown
dateCreated: 2024-05-19T12:41:51.196Z dateCreated: 2024-05-19T12:41:51.196Z
@ -14,6 +14,10 @@ Please use the standard formatting tools for your language, and obey them over a
> You should not configure your formatter, you should instead use its default options > You should not configure your formatter, you should instead use its default options
{.is-info} {.is-info}
## Using treefmt
// TODO
## Formatting manually ## Formatting manually
If you'd prefer to avoid treefmt, you can set up the language formatters manually. If you'd prefer to avoid treefmt, you can set up the language formatters manually.
@ -33,11 +37,11 @@ If you're using flakes, you can set your nix formatter in your `flake.nix` outpu
{.is-info} {.is-info}
```nix ```nix
{ {
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs"; nixpkgs.url = "github:nixos/nixpkgs";
}; };
outputs = { nixpkgs, ... }: { outputs = { nixpkgs, ... }: {
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style; formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
}; };
} }