diff --git a/next/.eslintrc.json b/next/.eslintrc.json
index 2995fe8..0993ff4 100644
--- a/next/.eslintrc.json
+++ b/next/.eslintrc.json
@@ -1,18 +1,23 @@
{
- "extends": ["next/core-web-vitals"],
+ "extends": ["next/core-web-vitals", "prettier"],
"rules": {
"no-multiple-empty-lines": ["error", { "max": 2 }],
"import/no-duplicates": "error",
"import/order": [
"error",
{
- "groups": [["builtin", "external"], "internal", ["parent", "sibling", "index"]],
+ "groups": [
+ ["builtin", "external"],
+ "internal",
+ "index",
+ ["parent", "sibling"]
+ ],
"newlines-between": "always"
}
],
"quotes": ["error", "double"],
"react/jsx-max-props-per-line": ["error", { "maximum": 3 }],
- "react/jsx-sort-props": ["error", { "ignoreCase": true }],
+ // "react/jsx-sort-props": ["error", { "ignoreCase": true }],
"react/self-closing-comp": "error"
}
}
diff --git a/next/.prettierrc.json b/next/.prettierrc.json
new file mode 100644
index 0000000..5eba112
--- /dev/null
+++ b/next/.prettierrc.json
@@ -0,0 +1,5 @@
+{
+ "plugins": ["@trivago/prettier-plugin-sort-imports"],
+ "importOrder": ["^[react]", "^@(?!/)", "^@/", "^[./]"],
+ "importOrderSeparation": true
+}
diff --git a/next/Makefile b/next/Makefile
new file mode 100644
index 0000000..eff63e4
--- /dev/null
+++ b/next/Makefile
@@ -0,0 +1,14 @@
+pnpm:
+ npm install pnpm
+
+install:
+ pnpm install
+
+format:
+ pnpm format
+
+lint: format
+ pnpm lint
+
+local:
+ pnpm dev
diff --git a/next/components/Footer.jsx b/next/components/Footer.jsx
index 231d0d4..1b2c1df 100644
--- a/next/components/Footer.jsx
+++ b/next/components/Footer.jsx
@@ -4,8 +4,10 @@ const Footer = () => {
return (
+ + Amr Abed + +
+Amr Abed
*/}- Amr Abed +
+ Amr Abed