diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..07f9ec9 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,41 @@ +/** @type {import("eslint").Linter.Config} */ +const config = { + parser: "@typescript-eslint/parser", + parserOptions: { + project: true, + }, + plugins: ["@typescript-eslint"], + extends: [ + "next/core-web-vitals", + "plugin:@typescript-eslint/recommended-type-checked", + "plugin:@typescript-eslint/stylistic-type-checked", + ], + rules: { + "@typescript-eslint/array-type": "off", + "@typescript-eslint/consistent-type-definitions": "off", + "@typescript-eslint/consistent-type-imports": [ + "warn", + { + prefer: "type-imports", + fixStyle: "inline-type-imports", + }, + ], + "@typescript-eslint/no-unused-vars": [ + "warn", + { + argsIgnorePattern: "^_", + }, + ], + "@typescript-eslint/no-unsafe-call": "off", + "@typescript-eslint/require-await": "off", + "@typescript-eslint/no-misused-promises": [ + "error", + { + checksVoidReturn: { + attributes: false, + }, + }, + ], + }, +}; +module.exports = config; diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index bffb357..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "next/core-web-vitals" -} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aeabba6..d208851 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,12 +9,16 @@ repos: language: system stages: [commit] - - id: lint - name: Next-Lint - entry: npx - args: [next, "lint"] - language: system - stages: [commit] + - id: eslint + name: eslint + description: '' + entry: eslint + language: node + args: [] + require_serial: false + additional_dependencies: ["eslint@8.57.0"] + minimum_pre_commit_version: '0' + stages: [commit] - id: run-tests name: Run Tests diff --git a/index.d.ts b/_index.d.ts similarity index 100% rename from index.d.ts rename to _index.d.ts diff --git a/app/dev-meetup-v2.tsx b/app/dev-meetup-v2.tsx index c919e17..90fbc40 100644 --- a/app/dev-meetup-v2.tsx +++ b/app/dev-meetup-v2.tsx @@ -1,250 +1,248 @@ import PageHead from "@/components/PageHead"; import Nav from "@/components/nav/Nav"; -import React from "react"; import Image from "next/image"; +import Link from "next/link"; +import V2 from "../assets/Image/V2.jpg"; +import highlighted from "../assets/Image/highlighted.jpg"; import pic1 from "../assets/Image/pic1.jpg"; import pic2 from "../assets/Image/pic2.jpg"; import pic3 from "../assets/Image/pic3.jpg"; import pic4 from "../assets/Image/pic4.jpg"; import pic5 from "../assets/Image/pic5.jpg"; import pic6 from "../assets/Image/pic6.jpg"; -import V2 from "../assets/Image/V2.jpg"; -import highlighted from "../assets/Image/highlighted.jpg"; -import StickyBottomBanner from "@/components/StickyBottomBanner"; -import Link from "next/link"; const HeroSection = () => ( -
-
-
-

- Welcome to Codenight Events -

-
-
-

- Join us as we bring together passionate individuals from across the - tech landscape to explore cutting-edge technologies. -

- - Explore Upcoming Events - -
-
-
+
+
+
+

+ Welcome to Codenight Events +

+
+
+

+ Join us as we bring together passionate individuals from across the + tech landscape to explore cutting-edge technologies. +

+ + Explore Upcoming Events + +
+
+
); const Description = () => ( -
-
-

- About Codenight Events -

-

- At Codenight Events, we believe in - the power of community, curiosity, and collaboration. Our gatherings are - more than just tech meetups they are vibrant hubs of excitement, where - like-minded individuals come together to share stories, reconnect with - old friends, and make new ones. -

-
-
+
+
+

+ About Codenight Events +

+

+ At Codenight Events, we believe in + the power of community, curiosity, and collaboration. Our gatherings are + more than just tech meetups they are vibrant hubs of excitement, where + like-minded individuals come together to share stories, reconnect with + old friends, and make new ones. +

+
+
); const Gallery = () => ( -
-
-

- Past Meetups -

-
-
- Meetup 1 -
-
- Meetup 1 -
-
- Meetup 1 -
-
- Meetup 1 -
-
- Meetup 1 -
-
- Meetup 1 -
+
+
+

+ Past Meetups +

+
+
+ Meetup 1 +
+
+ Meetup 1 +
+
+ Meetup 1 +
+
+ Meetup 1 +
+
+ Meetup 1 +
+
+ Meetup 1 +
- {/* Add more meetup images here */} -
-
-
+ {/* Add more meetup images here */} +
+
+
); const Stats = () => ( -
-
-
-
-

Total Attendees

-

500+

-
-
-

Total Speakers

-

50+

-
-
-

Hours of Content

-

100+

-
-
-
-
+
+
+
+
+

Total Attendees

+

500+

+
+
+

Total Speakers

+

50+

+
+
+

Hours of Content

+

100+

+
+
+
+
); const Session = () => ( -
-
-

- Highlighted Session -

-
- Session 1 -
-

Get-Together

-

- We all learned that the challenges we face are mostly similar, and - networking is an essential approach to overcoming these - challenges.We had fun sharing stories, meeting old friends and new - ones, and challenging our ideas. -

- - Learn More - -
-
-
-
+
+
+

+ Highlighted Session +

+
+ Session 1 +
+

Get-Together

+

+ We all learned that the challenges we face are mostly similar, and + networking is an essential approach to overcoming these + challenges.We had fun sharing stories, meeting old friends and new + ones, and challenging our ideas. +

+ + Learn More + +
+
+
+
); const Email = () => ( -
-
-

- Subscribe to Our Newsletter -

-

- Be the first to know by signing up for our email list. -

-
- - -
-
-
+
+
+

+ Subscribe to Our Newsletter +

+

+ Be the first to know by signing up for our email list. +

+
+ + +
+
+
); const Upcoming = () => ( -
-
-

- Up coming events -

-
- dev meetup v2 -
-

Dev Meetup V2

-

- Last year, we hosted an amaizzing dev meetup that left us all - buzzing with excitement. we had alot of fun and we learned a lot - from each other. Even we put faces to the usernames and the voices - to the names. -

- - Learn More - -
-
-
-
+
+
+

+ Up coming events +

+
+ dev meetup v2 +
+

Dev Meetup V2

+

+ Last year, we hosted an amaizzing dev meetup that left us all + buzzing with excitement. we had alot of fun and we learned a lot + from each other. Even we put faces to the usernames and the voices + to the names. +

+ + Learn More + +
+
+
+
); const Footer = () => ( - + ); export default function events() { - return ( - <> - -
-
- {/* */} - - ); + return ( + <> + +
+
+ {/* */} + + ); } diff --git a/app/faq/page.tsx b/app/faq/page.tsx index 8ddfaf2..8ecc738 100644 --- a/app/faq/page.tsx +++ b/app/faq/page.tsx @@ -2,39 +2,38 @@ import FAQSingleCard from "@/components/FAQSingleCard"; import PageHead from "@/components/PageHead"; import StickyBottomBanner from "@/components/StickyBottomBanner"; -import Nav from "@/components/nav/Nav"; import { FAQData } from "@/data"; const FAQPage = () => { - return ( - <> - -