aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-02-06 12:54:48 +0000
committerMohamedBassem <me@mbassem.com>2024-02-06 12:54:48 +0000
commit2518a99d1c296dc838edc2330dc6eb6fe5aead8e (patch)
treede79ccee980ead9bbc013666eebcf9e9a9469f83 /web
parent083ea5bd19172381bb53e95aaf98eaabef839c54 (diff)
downloadkarakeep-2518a99d1c296dc838edc2330dc6eb6fe5aead8e.tar.zst
Add eslint and prettier
Diffstat (limited to 'web')
-rw-r--r--web/.eslintrc.json21
-rw-r--r--web/.prettierignore6
-rw-r--r--web/.prettierrc1
-rwxr-xr-xweb/bun.lockbbin152334 -> 158558 bytes
-rw-r--r--web/package.json14
5 files changed, 38 insertions, 4 deletions
diff --git a/web/.eslintrc.json b/web/.eslintrc.json
index bffb357a..d971ae2a 100644
--- a/web/.eslintrc.json
+++ b/web/.eslintrc.json
@@ -1,3 +1,22 @@
{
- "extends": "next/core-web-vitals"
+ "parser": "@typescript-eslint/parser",
+ "parserOptions": {
+ "project": "./tsconfig.json",
+ "ecmaFeatures": {
+ "jsx": true
+ },
+ "ecmaVersion": 12,
+ "sourceType": "module"
+ },
+ "extends": [
+ "next/core-web-vitals",
+ "eslint:recommended",
+ "plugin:react/recommended",
+ "plugin:react-hooks/recommended",
+ "plugin:@next/next/recommended",
+ "next",
+ "plugin:@typescript-eslint/recommended",
+ "plugin:@typescript-eslint/recommended-requiring-type-checking",
+ "prettier"
+ ]
}
diff --git a/web/.prettierignore b/web/.prettierignore
new file mode 100644
index 00000000..22345d29
--- /dev/null
+++ b/web/.prettierignore
@@ -0,0 +1,6 @@
+# Ignore artifacts:
+.next
+build
+coverage
+.vscode*
+node_modules
diff --git a/web/.prettierrc b/web/.prettierrc
new file mode 100644
index 00000000..0967ef42
--- /dev/null
+++ b/web/.prettierrc
@@ -0,0 +1 @@
+{}
diff --git a/web/bun.lockb b/web/bun.lockb
index bfd618dc..7925e942 100755
--- a/web/bun.lockb
+++ b/web/bun.lockb
Binary files differ
diff --git a/web/package.json b/web/package.json
index 1323e456..2253d4e1 100644
--- a/web/package.json
+++ b/web/package.json
@@ -15,7 +15,6 @@
"lucide-react": "^0.322.0",
"next": "14.1.0",
"next-auth": "^4.24.5",
- "prisma": "^5.9.1",
"react": "^18",
"react-dom": "^18",
"tailwind-merge": "^2.2.1",
@@ -30,7 +29,16 @@
"autoprefixer": "^10.0.1",
"postcss": "^8",
"tailwindcss": "^3.3.0",
- "eslint": "^8",
- "eslint-config-next": "14.1.0"
+ "eslint": "^8.56.0",
+ "eslint-config-next": "14.1.0",
+ "@next/eslint-plugin-next": "^14.1.0",
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
+ "@typescript-eslint/parser": "^6.21.0",
+ "eslint-config-prettier": "^9.1.0",
+ "eslint-plugin-react": "^7.33.2",
+ "eslint-plugin-react-hooks": "^4.6.0",
+ "install": "^0.13.0",
+ "prettier": "^3.2.5",
+ "prisma": "^5.9.1"
}
}