Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ This is the official portfolio website built with Next.js, Tailwind CSS, and Rad

## Tech Stack

- **Framework**: [Next.js 15](https://nextjs.org) with App Router
- **Framework**: [Next.js 16](https://nextjs.org) with App Router and Turbopack
- **React**: React 19 with modern React features
- **Styling**: [Tailwind CSS 4](https://tailwindcss.com) and [Radix Colors](https://www.radix-ui.com/colors)
- **Components**: [Radix UI](https://www.radix-ui.com) and [Radix Icons](https://www.radix-ui.com/icons)
- **Typography**: [Geist Font](https://vercel.com/font)
- **Language**: TypeScript
- **Language**: TypeScript (strict mode)
- **Deployment**: GitHub Pages (automated via GitHub Actions)

## Getting Started
Expand Down Expand Up @@ -62,8 +63,8 @@ npm install

### Available Scripts

- `npm run dev` - Start development server with Turbopack
- `npm run build` - Build for production (GitHub Pages optimized)
- `npm run dev` - Start development server (Turbopack enabled by default in Next.js 16)
- `npm run build` - Build for production (GitHub Pages optimized with Turbopack)
- `npm run start` - Start production server
- `npm run lint` - Run ESLint with auto-fix
- `npm run type-check` - Run TypeScript type checking
Expand Down
38 changes: 16 additions & 22 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
import { dirname } from "path";
import { fileURLToPath } from "url";
import { FlatCompat } from "@eslint/eslintrc";
import { defineConfig, globalIgnores } from 'eslint/config';
import nextVitals from 'eslint-config-next/core-web-vitals';
import nextTs from 'eslint-config-next/typescript';

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

const compat = new FlatCompat({
baseDirectory: __dirname,
});

const eslintConfig = [
...compat.extends("next/core-web-vitals", "next/typescript"),
{
ignores: [
"node_modules/**",
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
],
},
];
const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
// Override default ignores of eslint-config-next.
globalIgnores([
// Default ignores of eslint-config-next:
'.next/**',
'out/**',
'build/**',
'next-env.d.ts',
'node_modules/**',
]),
]);
Comment on lines +1 to +17
Copy link

Copilot AI Jan 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import path 'eslint/config' and the functions defineConfig and globalIgnores don't appear to be part of the standard ESLint 9.x API.

According to the ESLint flat config documentation, the correct approach is:

  1. Export a plain array or object directly (no defineConfig wrapper needed)
  2. Use { ignores: [...] } as a config object, not globalIgnores([...])

Standard ESLint 9 flat config should look like:

export default [
  ...nextVitals,
  ...nextTs,
  {
    ignores: ['.next/**', 'out/**', 'build/**', 'next-env.d.ts', 'node_modules/**']
  }
];

Please verify that this configuration actually works in your environment, as the current syntax doesn't match ESLint's official flat config specification.

Copilot uses AI. Check for mistakes.

export default eslintConfig;
6 changes: 0 additions & 6 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ const nextConfig: NextConfig = {
// Type checking is handled by the CI pipeline
ignoreBuildErrors: false,
},

// ESLint configuration
eslint: {
// Linting is handled by the CI pipeline
ignoreDuringBuilds: false,
},
};

export default nextConfig;
Loading
Loading