Skip to content

Commit

Permalink
Add eslint and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Feb 6, 2024
1 parent 083ea5b commit 2518a99
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 4 deletions.
21 changes: 20 additions & 1 deletion web/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
6 changes: 6 additions & 0 deletions web/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Ignore artifacts:
.next
build
coverage
.vscode*
node_modules
1 change: 1 addition & 0 deletions web/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Binary file modified web/bun.lockb
Binary file not shown.
14 changes: 11 additions & 3 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
}

0 comments on commit 2518a99

Please sign in to comment.