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:
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"extends": [
|
||||
"next/core-web-vitals",
|
||||
"next/typescript"
|
||||
]
|
||||
}
|
||||
7
eslint.config.mjs
Normal file
7
eslint.config.mjs
Normal 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,
|
||||
];
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user