feat: adicionar configuração do ESLint e scripts de lint no package.json

Adiciona a configuração do ESLint ao projeto e inclui scripts para
executar e corrigir problemas de lint no package.json. Remove a
configuração anterior do ESLint que estava no arquivo .eslintrc.json.
This commit is contained in:
Felipe Coutinho
2025-11-16 00:58:28 -03:00
parent 9c004ca879
commit 7d88852ceb
3 changed files with 9 additions and 6 deletions

View File

@@ -1,6 +0,0 @@
{
"extends": [
"next/core-web-vitals",
"next/typescript"
]
}

7
eslint.config.mjs Normal file
View File

@@ -0,0 +1,7 @@
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
import nextTypescript from "eslint-config-next/typescript";
export default [
...nextCoreWebVitals,
...nextTypescript,
];

View File

@@ -6,6 +6,8 @@
"dev": "next dev --turbopack",
"build": "next build",
"start": "next start",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"env:setup": "bash scripts/setup-env.sh",
"db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate",