Add pre-commit hook for formatting
This commit is contained in:
parent
91600be038
commit
9033b9862a
|
@ -0,0 +1,8 @@
|
|||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: prettier
|
||||
name: prettier
|
||||
language: system
|
||||
entry: npx prettier --write
|
||||
files: '\.tsx$'
|
|
@ -5,6 +5,7 @@ stdenv.mkDerivation {
|
|||
buildInputs = with pkgs; [
|
||||
create-react-app
|
||||
nodejs
|
||||
pre-commit
|
||||
yarn
|
||||
];
|
||||
shellHook = ''
|
||||
|
|
Loading…
Reference in New Issue