From 099c7c9a97155681d35af55db82253a202c6c64e Mon Sep 17 00:00:00 2001 From: Justin Ma Date: Thu, 28 Sep 2023 19:16:51 +0800 Subject: [PATCH] Fix code formatting hooks (#1079) * chore: Fix code formatting hooks * chore: Fix code formatting hooks --- book/configuration.md | 6 +++--- lefthook.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/book/configuration.md b/book/configuration.md index f523eeaa76b..a7cba2db451 100644 --- a/book/configuration.md +++ b/book/configuration.md @@ -4,10 +4,10 @@ Nushell uses a configuration system that loads and runs two Nushell script files at launch time: - - `env.nu` is used to define environment variables. These typically get used in the second config file, config.nu. - - `config.nu` is used to add definitions, aliases, and more to the global namespace. It can use the environment variables defined in `env.nu`, which is why there's two separate files. +- `env.nu` is used to define environment variables. These typically get used in the second config file, config.nu. +- `config.nu` is used to add definitions, aliases, and more to the global namespace. It can use the environment variables defined in `env.nu`, which is why there's two separate files. -You can check where Nushell is reading these config files from by calling `$nu.env-path` and `$nu.config-path`. +You can check where Nushell is reading these config files from by calling `$nu.env-path` and `$nu.config-path`. ``` > $nu.env-path diff --git a/lefthook.yml b/lefthook.yml index 3ada0e6bea9..c551aa3a318 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -31,4 +31,4 @@ pre-commit: - rebase stage_fixed: true glob: "**/*" - run: prettier --write --ignore-unknown {staged_files} + run: npx prettier --write --ignore-unknown {staged_files}