File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1717 files = "\\ .rs$" ;
1818 } ;
1919
20- denofmt =
20+ # TODO(jaredponn): Why do we use our strange version of `denofmt` and
21+ # `denolint`? The default implemented version in `pre-commit-hooks.nix`
22+ # is a bit buggy (see
23+ # https://github.com/cachix/pre-commit-hooks.nix/issues/374), and the
24+ # latest version of `deno` on nix doesn't allow explicitly applying
25+ # the formatter to specific files
26+ my-denofmt =
2127 {
2228 name = "denofmt" ;
2329 description = "Format Typescript code." ;
2430 entry = "${ deno } /bin/deno fmt" ;
2531 files = "(\\ .ts$)|(^tsconfig?(-base)\\ .json$)" ;
2632 } ;
2733
28- denolint =
34+ my- denolint =
2935 {
3036 name = "denolint" ;
3137 description = "Lint Typescript code." ;
Original file line number Diff line number Diff line change 3636 dhall-format . enable = true ;
3737 purty . enable = true ;
3838 rustfmt-monorepo . enable = true ;
39- denofmt . enable = true ;
40- denolint . enable = true ;
39+ my- denofmt. enable = true ;
40+ my- denolint. enable = true ;
4141
4242 } // ( inputs . protobufs-nix . lib . ${ system } . preCommitHooks { inherit pkgs ; } ) ;
4343
You can’t perform that action at this time.
0 commit comments