From d8c12dce0a97d113648d42e691fbeccf32bd6f29 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sat, 6 Nov 2021 17:35:35 +0100 Subject: [PATCH] Added prettier config into the repo --- .prettierignore | 9 +++++++++ .prettierrc.json | 9 +++++++++ package-lock.json | 6 ++++++ package.json | 1 + 4 files changed, 25 insertions(+) create mode 100644 .prettierignore create mode 100644 .prettierrc.json diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..a0428d48 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,9 @@ +.idea +application +build +docker +docs +storage +system +tests +vendor diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 00000000..37dc1cf4 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,9 @@ +{ + "printWidth": 120, + "tabWidth": 4, + "singleQuote": true, + "bracketSpacing": false, + "bracketSameLine": false, + "quoteProps": "preserve", + "trailingComma": "none" +} diff --git a/package-lock.json b/package-lock.json index 9d59b8f7..0467f5a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4445,6 +4445,12 @@ "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", "dev": true }, + "prettier": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.4.1.tgz", + "integrity": "sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==", + "dev": true + }, "pretty-hrtime": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", diff --git a/package.json b/package.json index 0783e083..39e7a6a1 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "jsdoc": "^3.6.6", "node-notifier": "^8.0.1", "plato": "^1.7.0", + "prettier": "^2.4.1", "zip-dir": "^1.0.2" }, "scripts": {