From 6626de3b104f49481ec2373dc69d06aa5900482f Mon Sep 17 00:00:00 2001 From: Ben Kremer Date: Wed, 2 Feb 2022 17:10:56 +0100 Subject: [PATCH] chore(deps): adds missing prettier devDep --- dapps/react-dapp-v2/.prettierrc | 3 ++- dapps/react-dapp-v2/package.json | 6 ++++-- dapps/react-dapp-v2/yarn.lock | 5 +++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/dapps/react-dapp-v2/.prettierrc b/dapps/react-dapp-v2/.prettierrc index eb9f490..ec9ce09 100644 --- a/dapps/react-dapp-v2/.prettierrc +++ b/dapps/react-dapp-v2/.prettierrc @@ -2,5 +2,6 @@ "tabWidth": 2, "useTabs": false, "trailingComma": "all", - "printWidth": 100 + "printWidth": 100, + "arrowParens": "avoid" } diff --git a/dapps/react-dapp-v2/package.json b/dapps/react-dapp-v2/package.json index 80977ae..68506bc 100644 --- a/dapps/react-dapp-v2/package.json +++ b/dapps/react-dapp-v2/package.json @@ -14,7 +14,8 @@ "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", - "eject": "react-scripts eject" + "eject": "react-scripts eject", + "prettier": "prettier --check '**/*.{js,ts,jsx,tsx}'" }, "repository": { "type": "git", @@ -57,7 +58,8 @@ "@types/qr-image": "^3.2.5", "@types/react": "^17.0.38", "@types/react-dom": "^17.0.11", - "@types/styled-components": "^5.1.21" + "@types/styled-components": "^5.1.21", + "prettier": "^2.5.1" }, "eslintConfig": { "extends": [ diff --git a/dapps/react-dapp-v2/yarn.lock b/dapps/react-dapp-v2/yarn.lock index 73c9afa..7f23b7a 100644 --- a/dapps/react-dapp-v2/yarn.lock +++ b/dapps/react-dapp-v2/yarn.lock @@ -10149,6 +10149,11 @@ prepend-http@^1.0.0: resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" integrity sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw= +prettier@^2.5.1: + version "2.5.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.1.tgz#fff75fa9d519c54cf0fce328c1017d94546bc56a" + integrity sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg== + pretty-bytes@^5.3.0: version "5.6.0" resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-5.6.0.tgz#356256f643804773c82f64723fe78c92c62beaeb"