From 0976ac1b09b7257fe74389bafe94697059a07aed Mon Sep 17 00:00:00 2001 From: Jakub Nowakowski Date: Fri, 24 Nov 2023 00:52:54 +0100 Subject: [PATCH] Run format:fix in the root directory This is a result of running the format:fix script. --- README.md | 16 +++++++++------- package.json | 20 ++++++++++---------- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 86f06997e..18d15124c 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ please see the [documentation](https://pnpm.io/installation). #### Package Dependencies To install the packages dependencies run: + ```sh pnpm install ``` @@ -30,19 +31,21 @@ automatically discover code issues, before they submit the code. To setup the hooks follow the steps: 1. Install `pre-commit` tool: - ```sh - brew install pre-commit - ``` + + ```sh + brew install pre-commit + ``` 2. Install the hooks for the repository: - ```sh - pre-commit install - ``` + ```sh + pre-commit install + ``` #### Testing To test the pre-commit hooks configuration you can invoke them with one of the commands: + ```sh # Execute hooks for all files: pre-commit run --all-files @@ -50,4 +53,3 @@ pre-commit run --all-files # Execute hooks for specific files (e.g. Acre.sol): pre-commit run --files ./core/contracts/Acre.sol ``` - diff --git a/package.json b/package.json index 55251ea20..32355e52a 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { - "private": true, - "packageManager": "pnpm@8.10.5", - "scripts": { - "format": "prettier --check .", - "format:fix": "prettier --write ." - }, - "devDependencies": { - "@thesis/prettier-config": "github:thesis/prettier-config", - "prettier": "^3.1.0" - } + "private": true, + "packageManager": "pnpm@8.10.5", + "scripts": { + "format": "prettier --check .", + "format:fix": "prettier --write ." + }, + "devDependencies": { + "@thesis/prettier-config": "github:thesis/prettier-config", + "prettier": "^3.1.0" + } }