about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs/tree-sitter-yts/treefmt.toml
blob: 3d604b40a6d4fd4ed553e519e04a2cde281a79b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[formatter.nix]
command = "nixpkgs-fmt"
includes = ["*.nix"]
excludes = ["test/**.nix"]

[formatter.prettier]
command = "prettier"
options = ["--write"]
includes = [
  "*.css",
  "*.html",
  "*.js",
  "*.json",
  "*.jsx",
  "*.md",
  "*.mdx",
  "*.scss",
  "*.ts",
]
excludes = ["src/**.json"]

[formatter.rust]
command = "rustfmt"
options = ["--edition", "2018"]
includes = ["*.rs"]

[formatter.c]
command = "clang-format"
options = ["-i"]
includes = ["*.c", "*.cpp", "*.cc", "*.h", "*.hpp"]
excludes = [
  "bindings/node/binding.cc",
  "src/parser.c",
  "src/tree_sitter/parser.h",
]