add prettier

This commit is contained in:
plebeius.eth
2023-09-16 21:19:56 +02:00
parent 43f63aa341
commit 0aa105a4b9
3 changed files with 14 additions and 1 deletions
+3 -1
View File
@@ -63,7 +63,8 @@
"electron:before": "yarn electron:before:download-ipfs && yarn electron:before:delete-data",
"electron:before:download-ipfs": "node electron/downloadIpfs",
"electron:before:delete-data": "rimraf .plebbit",
"android:build:icons": "cordova-res android --skip-config --copy --resources /tmp/plebbit-react-android-icons --icon-source ./android/icons/icon.png --splash-source ./android/icons/splash.png --icon-foreground-source ./android/icons/icon-foreground.png --icon-background-source '#ffffee'"
"android:build:icons": "cordova-res android --skip-config --copy --resources /tmp/plebbit-react-android-icons --icon-source ./android/icons/icon.png --splash-source ./android/icons/splash.png --icon-foreground-source ./android/icons/icon-foreground.png --icon-background-source '#ffffee'",
"prettier": "prettier src/**/*.{js,jsx} --write"
},
"eslintConfig": {
"extends": [
@@ -131,6 +132,7 @@
"decompress": "4.2.1",
"electron": "19.1.8",
"electron-builder": "23.0.9",
"prettier": "2.3.2",
"source-map-explorer": "2.5.3",
"typescript": "5.0.2",
"wait-on": "7.0.1"
+6
View File
@@ -0,0 +1,6 @@
module.exports = {
semi: false,
singleQuote: true,
printWidth: 170,
bracketSpacing: false,
}
+5
View File
@@ -12094,6 +12094,11 @@ prepend-http@^2.0.0:
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
integrity sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==
prettier@2.3.2:
version "2.3.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.2.tgz#ef280a05ec253712e486233db5c6f23441e7342d"
integrity sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==
pretty-bytes@^5.3.0, pretty-bytes@^5.4.1:
version "5.6.0"
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-5.6.0.tgz#356256f643804773c82f64723fe78c92c62beaeb"