feat: linting
This commit is contained in:
17
flake.nix
17
flake.nix
@ -57,6 +57,7 @@
|
||||
gotools
|
||||
gopls
|
||||
air
|
||||
revive
|
||||
|
||||
# Protobuf middleware
|
||||
buf
|
||||
@ -171,6 +172,22 @@
|
||||
git push origin "''${next_version}"
|
||||
'';
|
||||
})
|
||||
|
||||
(writeShellApplication {
|
||||
name = "ts-lint";
|
||||
|
||||
text = ''
|
||||
git_root=$(git rev-parse --show-toplevel)
|
||||
|
||||
cd "''${git_root}/client"
|
||||
npm run check
|
||||
npm run format
|
||||
npm run lint
|
||||
|
||||
cd "''${git_root}/server"
|
||||
revive -config revive.toml -formatter friendly ./...
|
||||
'';
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user