feat: initialize Next.js project with TypeScript, ESLint, and Tailwind CSS
- 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.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user