From 4b7ba216f7ff8cc4e8e3456d64783c46b207d4d5 Mon Sep 17 00:00:00 2001 From: Filip Chalupa Date: Sat, 14 Dec 2024 17:02:00 +0100 Subject: [PATCH] Add prettier --- .prettierrc | 7 +++++++ package-lock.json | 16 ++++++++++++++++ package.json | 1 + 3 files changed, 24 insertions(+) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..ba333a1 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "semi": false, + "singleQuote": true, + "trailingComma": "all", + "useTabs": true, + "arrowParens": "always" +} diff --git a/package-lock.json b/package-lock.json index 93da8bc..4cde6f7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,7 @@ "eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-react-refresh": "^0.4.14", "globals": "^15.12.0", + "prettier": "^3.4.2", "typescript": "~5.6.2", "typescript-eslint": "^8.15.0", "vite": "^6.0.1" @@ -2550,6 +2551,21 @@ "node": ">= 0.8.0" } }, + "node_modules/prettier": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.2.tgz", + "integrity": "sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", diff --git a/package.json b/package.json index b611e48..dd965a7 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-react-refresh": "^0.4.14", "globals": "^15.12.0", + "prettier": "^3.4.2", "typescript": "~5.6.2", "typescript-eslint": "^8.15.0", "vite": "^6.0.1"