From 7a2f7f0e0ec1542be311d43af81b6454cd0d74b7 Mon Sep 17 00:00:00 2001 From: GRehan Date: Wed, 26 Feb 2025 10:17:55 +0100 Subject: [PATCH 01/14] Fixed eslint bug --- .prettierrc | 3 +-- package-lock.json | 16 ++++++++-------- package.json | 4 ++-- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.prettierrc b/.prettierrc index 639c6972..5ae4e4f6 100644 --- a/.prettierrc +++ b/.prettierrc @@ -4,6 +4,5 @@ "printWidth": 100, "singleQuote": true, "trailingComma": "none", - "jsxBracketSameLine": false, - "endOfLine": "lf" + "jsxBracketSameLine": false } diff --git a/package-lock.json b/package-lock.json index 6891fbef..4412c842 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,10 +25,10 @@ "eslint-config-standard": "^17.1.0", "eslint-plugin-import": "^2.31.0", "eslint-plugin-n": "^16.6.2", - "eslint-plugin-prettier": "^5.2.1", + "eslint-plugin-prettier": "^5.2.3", "eslint-plugin-promise": "^6.6.0", "eslint-plugin-react": "^7.37.1", - "prettier": "^3.3.3" + "prettier": "^3.5.2" } }, "node_modules/@adobe/css-tools": { @@ -7692,9 +7692,9 @@ } }, "node_modules/eslint-plugin-prettier": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.1.tgz", - "integrity": "sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==", + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.3.tgz", + "integrity": "sha512-qJ+y0FfCp/mQYQ/vWQ3s7eUlFEL4PyKfAJxsnYTJ4YT73nsJBWqmEpFryxV9OeUiqmsTsYJ5Y+KDNaeP31wrRw==", "dev": true, "license": "MIT", "dependencies": { @@ -14525,9 +14525,9 @@ } }, "node_modules/prettier": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", - "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.2.tgz", + "integrity": "sha512-lc6npv5PH7hVqozBR7lkBNOGXV9vMwROAPlumdBkX0wTbbzPu/U1hk5yL8p2pt4Xoc+2mkT8t/sow2YrV/M5qg==", "dev": true, "license": "MIT", "bin": { diff --git a/package.json b/package.json index 249b6b05..ba282b30 100644 --- a/package.json +++ b/package.json @@ -47,9 +47,9 @@ "eslint-config-standard": "^17.1.0", "eslint-plugin-import": "^2.31.0", "eslint-plugin-n": "^16.6.2", - "eslint-plugin-prettier": "^5.2.1", + "eslint-plugin-prettier": "^5.2.3", "eslint-plugin-promise": "^6.6.0", "eslint-plugin-react": "^7.37.1", - "prettier": "^3.3.3" + "prettier": "^3.5.2" } } From 0c05b054514ad3144b84d7e8102e82e824258ba3 Mon Sep 17 00:00:00 2001 From: Miadog7Extra Date: Wed, 26 Feb 2025 11:28:04 +0100 Subject: [PATCH 02/14] username in creat post --- .eslintrc.json | 6 +++ .github/dependabot.yml | 12 +++--- public/index.html | 7 +--- src/App.js | 51 +++++++++++++------------ src/components/createPostModal/index.js | 13 +++++-- src/context/user.js | 22 +++++++++++ src/service/apiClient.js | 7 +++- 7 files changed, 79 insertions(+), 39 deletions(-) create mode 100644 src/context/user.js diff --git a/.eslintrc.json b/.eslintrc.json index 2988e2ba..34a9a9cc 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -15,6 +15,12 @@ }, "plugins": ["react", "prettier"], "rules": { + "prettier/prettier": [ + "error", + { + "endOfLine": "auto" + } + ], "react/react-in-jsx-scope": "off", "react/prop-types": 0 }, diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 2ff3cb71..00405d80 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,14 +5,14 @@ version: 2 updates: - - package-ecosystem: "npm" # See documentation for possible values - directory: "/" # Location of package manifests + - package-ecosystem: 'npm' # See documentation for possible values + directory: '/' # Location of package manifests schedule: - interval: "weekly" + interval: 'weekly' - - package-ecosystem: "github-actions" + - package-ecosystem: 'github-actions' # Workflow files stored in the # default location of `.github/workflows` - directory: "/" + directory: '/' schedule: - interval: "weekly" + interval: 'weekly' diff --git a/public/index.html b/public/index.html index aa069f27..d79d7a78 100644 --- a/public/index.html +++ b/public/index.html @@ -1,14 +1,11 @@ - + - +