Skip to content

Commit 7833d5d

Browse files
Fix type errors
1 parent 7fe2a8b commit 7833d5d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+828
-523
lines changed

eslint.config.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
import { FlatCompat } from "@eslint/eslintrc";
21
import tseslint from "typescript-eslint";
2+
import { createRequire } from "module";
3+
import { fileURLToPath } from "url";
4+
import path from "path";
35

4-
const compat = new FlatCompat({
5-
baseDirectory: import.meta.dirname,
6-
});
6+
const __filename = fileURLToPath(import.meta.url);
7+
const __dirname = path.dirname(__filename);
8+
const require = createRequire(import.meta.url);
9+
10+
// Import Next.js config directly (it's already in flat config format)
11+
const nextConfig = require("eslint-config-next/core-web-vitals");
712

813
export default tseslint.config(
914
{
10-
ignores: [".next"],
15+
ignores: [".next", "node_modules"],
1116
},
12-
...compat.extends("next/core-web-vitals"),
17+
...nextConfig,
1318
{
1419
files: ["**/*.ts", "**/*.tsx"],
1520
extends: [

next.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ const config = {
6363
}
6464
return config;
6565
},
66-
// Ignore TypeScript errors during build (they can be fixed separately)
66+
// TypeScript errors will fail the build
6767
typescript: {
68-
ignoreBuildErrors: true,
68+
ignoreBuildErrors: false,
6969
},
7070
};
7171

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"type": "module",
66
"scripts": {
77
"build": "next build --webpack",
8-
"check": "next lint && tsc --noEmit",
8+
"check": "npm run lint && tsc --noEmit",
99
"dev": "next dev --webpack",
1010
"dev:server": "node server.js",
1111
"dev:next": "next dev --webpack",
1212
"format:check": "prettier --check \"**/*.{ts,tsx,js,jsx,mdx}\" --cache",
1313
"format:write": "prettier --write \"**/*.{ts,tsx,js,jsx,mdx}\" --cache",
14-
"lint": "next lint",
15-
"lint:fix": "next lint --fix",
14+
"lint": "eslint . --ext .ts,.tsx,.js,.jsx",
15+
"lint:fix": "eslint . --ext .ts,.tsx,.js,.jsx --fix",
1616
"preview": "next build && next start",
1717
"start": "node server.js",
1818
"test": "vitest",

0 commit comments

Comments
 (0)