- Added ESLint configuration for Next.js with custom global ignores. - Created Next.js configuration file with basic setup. - Initialized package.json with dependencies for Next.js, React, and TypeScript. - Set up PostCSS configuration for Tailwind CSS. - Added SVG assets for the project. - Created TypeScript configuration file with strict settings and Next.js support. - Defined custom type declarations for Next.js cache life and routing parameters. - Implemented validation types for Next.js pages and layouts.
19 lines
465 B
JavaScript
19 lines
465 B
JavaScript
import { defineConfig, globalIgnores } from "eslint/config";
|
|
import nextVitals from "eslint-config-next/core-web-vitals";
|
|
import nextTs from "eslint-config-next/typescript";
|
|
|
|
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",
|
|
]),
|
|
]);
|
|
|
|
export default eslintConfig;
|