Fix lint script
All checks were successful
/ maven-build (push) Successful in 22s

This commit is contained in:
Manuel Friedli 2026-03-07 23:38:36 +01:00
parent 775d1e7720
commit 824f038084
Signed by: manuel
GPG key ID: 41D08ABA75634DA1
3 changed files with 1044 additions and 618 deletions

View file

@ -1,16 +1,16 @@
import { dirname } from "path"; import { defineConfig, globalIgnores } from 'eslint/config'
import { fileURLToPath } from "url"; import nextVitals from 'eslint-config-next/core-web-vitals'
import { FlatCompat } from "@eslint/eslintrc";
const __filename = fileURLToPath(import.meta.url); const eslintConfig = defineConfig([
const __dirname = dirname(__filename); ...nextVitals,
// Override default ignores of eslint-config-next.
const compat = new FlatCompat({ globalIgnores([
baseDirectory: __dirname, // Default ignores of eslint-config-next:
}); '.next/**',
'out/**',
const eslintConfig = [ 'build/**',
...compat.extends("next/core-web-vitals", "next/typescript"), 'next-env.d.ts',
]; ]),
])
export default eslintConfig; export default eslintConfig;

1612
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -6,21 +6,21 @@
"dev": "next dev", "dev": "next dev",
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
"lint": "next lint" "lint": "eslint"
}, },
"dependencies": { "dependencies": {
"next": "^16.1.4", "next": "16.1.6",
"react": "^19.2.3", "react": "19.2.4",
"react-dom": "^19.2.3" "react-dom": "19.2.4"
}, },
"devDependencies": { "devDependencies": {
"@eslint/eslintrc": "^3", "@eslint/eslintrc": "3.3.5",
"@types/node": "^20", "@types/node": "25.3.5",
"@types/react": "^19", "@types/react": "19.2.14",
"@types/react-dom": "^19", "@types/react-dom": "19.2.3",
"eslint": "^9", "eslint": "9.39.4",
"eslint-config-next": "^16.1.4", "eslint-config-next": "16.1.6",
"sass": "^1.85.1", "sass": "1.97.3",
"typescript": "^5" "typescript": "5.9.3"
} }
} }