Added Linting and Formating

This commit is contained in:
Ahmad 2024-02-15 20:27:24 -05:00
parent 817cd7f92d
commit d5631b309a
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
4 changed files with 950 additions and 422 deletions

View file

@ -1,3 +1,13 @@
{ {
"extends": "next/core-web-vitals" "extends": ["next/core-web-vitals", "prettier"],
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parserOptions": {
"project": "./tsconfig.json"
}
}
]
} }

8
.prettierrc.json Normal file
View file

@ -0,0 +1,8 @@
{
"trailingComma": "es5",
"semi": true,
"tabWidth": 2,
"singleQuote": true,
"jsxSingleQuote": true,
"plugins": ["prettier-plugin-tailwindcss"]
}

1338
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -7,7 +7,9 @@
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
"lint": "next lint", "lint": "next lint",
"postinstall": "prisma generate" "postinstall": "prisma generate",
"format": "prettier --check --ignore-path .gitignore .",
"format:fix": "prettier --write --ignore-path .gitignore ."
}, },
"dependencies": { "dependencies": {
"@clerk/nextjs": "^4.29.3", "@clerk/nextjs": "^4.29.3",
@ -45,8 +47,14 @@
"@types/react": "^18", "@types/react": "^18",
"@types/react-dom": "^18", "@types/react-dom": "^18",
"autoprefixer": "^10.0.1", "autoprefixer": "^10.0.1",
"eslint": "^8", "@next/eslint-plugin-next": "^14.1.0",
"eslint-config-next": "14.0.4", "@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"eslint": "^8.56.0",
"eslint-config-next": "^14.1.0",
"eslint-config-prettier": "^9.1.0",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.11",
"postcss": "^8", "postcss": "^8",
"prisma": "^5.9.1", "prisma": "^5.9.1",
"tailwindcss": "^3.3.0", "tailwindcss": "^3.3.0",