From d0bb44e202d094d12301cb5dc358bbecbfa99836 Mon Sep 17 00:00:00 2001 From: Aitor Urrutia Date: Fri, 14 Jan 2022 20:31:04 +0100 Subject: [PATCH] chore: prettier mugitzen du --- .prettierignore | 3 --- front/.prettierignore | 3 +++ .prettierrc => front/.prettierrc | 0 front/package.json | 6 +++++- package.json | 7 ++----- 5 files changed, 10 insertions(+), 9 deletions(-) delete mode 100644 .prettierignore create mode 100644 front/.prettierignore rename .prettierrc => front/.prettierrc (100%) diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index 787a01b..0000000 --- a/.prettierignore +++ /dev/null @@ -1,3 +0,0 @@ -front/node_modules -front/public -front/.cache \ No newline at end of file diff --git a/front/.prettierignore b/front/.prettierignore new file mode 100644 index 0000000..c7b4255 --- /dev/null +++ b/front/.prettierignore @@ -0,0 +1,3 @@ +node_modules +public +.cache \ No newline at end of file diff --git a/.prettierrc b/front/.prettierrc similarity index 100% rename from .prettierrc rename to front/.prettierrc diff --git a/front/package.json b/front/package.json index 1747cf8..f480888 100644 --- a/front/package.json +++ b/front/package.json @@ -13,7 +13,8 @@ "start": "gatsby develop", "build": "gatsby build", "serve": "gatsby serve", - "clean": "gatsby clean" + "clean": "gatsby clean", + "prettier": "prettier . --write" }, "dependencies": { "babel-plugin-styled-components": "^2.0.2", @@ -31,5 +32,8 @@ "react-dom": "^17.0.1", "react-helmet": "^6.1.0", "styled-components": "^5.3.3" + }, + "devDependencies": { + "prettier": "^2.5.1" } } diff --git a/package.json b/package.json index 6875824..b460b25 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "start:back": "yarn workspace back start", "develop:back": "yarn workspace back develop", "develop:front": "yarn workspace front develop", - "prettier:front": "yarn prettier front --write" + "prettier:front": "yarn workspace front prettier" }, "repository": { "type": "git", @@ -28,8 +28,5 @@ "bugs": { "url": "https://github.com/labasarea/laba-webgunea/issues" }, - "homepage": "https://github.com/labasarea/laba-webgunea#readme", - "devDependencies": { - "prettier": "^2.5.1" - } + "homepage": "https://github.com/labasarea/laba-webgunea#readme" }