@@ -147,53 +147,24 @@ use nix
147147
148148## Hooks
149149
150- ### Nix
151-
152- - [ alejandra] ( https://github.com/kamadorueda/alejandra )
153- - [ deadnix] ( https://github.com/astro/deadnix )
154- - [ flake-checker] ( https://github.com/DeterminateSystems/flake-checker )
155- - [ nil] ( https://github.com/oxalica/nil )
156- - [ nixfmt-classic] ( https://github.com/NixOS/nixfmt/tree/v0.6.0 )
157- - [ nixfmt-rfc-style] ( https://github.com/NixOS/nixfmt/ )
158- - [ nixpkgs-fmt] ( https://github.com/nix-community/nixpkgs-fmt )
159- - [ statix] ( https://github.com/nerdypepper/statix )
160-
161- ### Haskell
162-
163- - [ cabal-fmt] ( https://github.com/phadej/cabal-fmt )
164- - [ cabal-gild] ( https://github.com/tfausak/cabal-gild )
165- - [ cabal2nix] ( https://github.com/NixOS/cabal2nix )
166- - [ fourmolu] ( https://github.com/parsonsmatt/fourmolu )
167- - [ hindent] ( https://github.com/chrisdone/hindent )
168- - [ hlint] ( https://github.com/ndmitchell/hlint )
169- - [ hpack] ( https://github.com/sol/hpack )
170- - [ ormolu] ( https://github.com/tweag/ormolu )
171- - [ stylish-haskell] ( https://github.com/jaspervdj/stylish-haskell )
172-
173- ### C/C++/C#/ObjC
174-
175- - [ clang-format] ( https://clang.llvm.org/docs/ClangFormat.html )
176- - [ clang-tidy] ( https://clang.llvm.org/extra/clang-tidy/ )
177-
178- You may restrict which languages should be formatted by ` clang-format ` using
179- ` clang-format.types_or ` . For example to check only C and C++ files:
180-
181- ``` nix
182- clang-format = {
183- enable = true;
184- types_or = lib.mkForce [ "c" "c++" ];
185- };
186- ```
187-
188- Otherwise, the default internal list is used which includes everything that
189- clang-format supports.
190-
191150### Ansible
192151
193152- [ ansible-lint] ( https://github.com/ansible/ansible-lint )
194153
195- ### C/C++
154+ ### C/C++/C#/ObjC
196155
156+ - [ clang-format] ( https://clang.llvm.org/docs/ClangFormat.html ) .\
157+ You may restrict which languages should be formatted by ` clang-format ` using
158+ ` clang-format.types_or ` . For example to check only C and C++ files:
159+ ``` nix
160+ clang-format = {
161+ enable = true;
162+ types_or = lib.mkForce [ "c" "c++" ];
163+ };
164+ ```
165+ Otherwise, the default internal list is used which includes everything that
166+ clang-format supports.
167+ - [ clang-tidy] ( https://clang.llvm.org/extra/clang-tidy/ )
197168- [ cmake-format] ( https://cmake-format.readthedocs.io/en/latest/ )
198169
199170### Clojure
@@ -261,10 +232,30 @@ clang-format supports.
261232- [ revive] ( https://github.com/mgechev/revive )
262233- [ staticcheck] ( https://github.com/dominikh/go-tools )
263234
235+ ### Haskell
236+
237+ - [ cabal-fmt] ( https://github.com/phadej/cabal-fmt )
238+ - [ cabal-gild] ( https://github.com/tfausak/cabal-gild )
239+ - [ cabal2nix] ( https://github.com/NixOS/cabal2nix )
240+ - [ fourmolu] ( https://github.com/parsonsmatt/fourmolu )
241+ - [ hindent] ( https://github.com/chrisdone/hindent )
242+ - [ hlint] ( https://github.com/ndmitchell/hlint )
243+ - [ hpack] ( https://github.com/sol/hpack )
244+ - [ ormolu] ( https://github.com/tweag/ormolu )
245+ - [ stylish-haskell] ( https://github.com/jaspervdj/stylish-haskell )
246+
264247### HTML
265248
266249- [ html-tidy] ( https://github.com/htacg/tidy-html5 )
267250
251+ ### JavaScript/TypeScript
252+
253+ - [ biome] ( https://biomejs.dev/ )
254+ - [ denofmt] ( https://docs.deno.com/runtime/reference/cli/fmt/ )
255+ - [ denolint] ( https://docs.deno.com/runtime/reference/cli/lint/ )
256+ - [ eslint] ( https://github.com/eslint/eslint )
257+ - rome: (alias to the biome hook)
258+
268259### JSON
269260
270261- [ check-json] ( https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/check_json.py )
@@ -299,13 +290,16 @@ clang-format supports.
299290- [ mdl] ( https://github.com/markdownlint/markdownlint/ )
300291- [ mdsh] ( https://zimbatm.github.io/mdsh/ )
301292
302- ### JavaScript/TypeScript
293+ ### Nix
303294
304- - [ biome] ( https://biomejs.dev/ )
305- - [ denofmt] ( https://docs.deno.com/runtime/reference/cli/fmt/ )
306- - [ denolint] ( https://docs.deno.com/runtime/reference/cli/lint/ )
307- - [ eslint] ( https://github.com/eslint/eslint )
308- - rome: (alias to the biome hook)
295+ - [ alejandra] ( https://github.com/kamadorueda/alejandra )
296+ - [ deadnix] ( https://github.com/astro/deadnix )
297+ - [ flake-checker] ( https://github.com/DeterminateSystems/flake-checker )
298+ - [ nil] ( https://github.com/oxalica/nil )
299+ - [ nixfmt-classic] ( https://github.com/NixOS/nixfmt/tree/v0.6.0 )
300+ - [ nixfmt-rfc-style] ( https://github.com/NixOS/nixfmt/ )
301+ - [ nixpkgs-fmt] ( https://github.com/nix-community/nixpkgs-fmt )
302+ - [ statix] ( https://github.com/nerdypepper/statix )
309303
310304### OCaml
311305
0 commit comments