From 160590658bb7e317218dc82e3f4f7684d8290caa Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 6 Jan 2024 19:25:17 -0700 Subject: [PATCH] Add prettier --- .dir-locals.el | 4 ++++ App.tsx | 12 +++++------- flake.nix | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 .dir-locals.el diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 0000000..b8fcab5 --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1,4 @@ +((nil + . + ((lsp-pylsp-server-command . ("poetry" "run" "pylsp")) + (apheleia-inhibit . nil)))) diff --git a/App.tsx b/App.tsx index f0d664d..2d7e939 100644 --- a/App.tsx +++ b/App.tsx @@ -1,14 +1,12 @@ import React from "react"; import { SafeAreaView, Text } from "react-native"; - const App: React.FC = () => { - return ( - - Hello, World! - - ); + return ( + + Hello, World! + + ); }; - export default App; diff --git a/flake.nix b/flake.nix index 923b8e7..ccc5dc2 100644 --- a/flake.nix +++ b/flake.nix @@ -53,7 +53,7 @@ in with pkgs; { defaultPackage = appBuild; devShell = mkShell { - buildInputs = [ nodejs yarn watchman gradle_7 alejandra ]; + buildInputs = [ nodejs yarn watchman gradle_7 alejandra nodePackages.prettier ]; ANDROID_SDK_BIN = android-sdk; shellHook = '' export JAVA_HOME=${pkgs.jdk17.home}