Skip to content

Commit

Permalink
Fixed ESLint Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vai9er committed Feb 17, 2024
1 parent f5cb1be commit 0f48db6
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 11 deletions.
12 changes: 10 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"extends": ["eslint:recommended", "prettier", "prettier/react"],
"extends": [
"eslint:recommended",
"prettier",
"plugin:react/recommended",
"plugin:react/jsx-runtime"
],
"plugins": [],
"parserOptions": {
"ecmaVersion": 2018,
Expand All @@ -13,5 +18,8 @@
"es6": true,
"browser": true,
"node": true
},
"rules": {
"react/prop-types": "off"
}
}
}
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"eslint": "^8.56.0",
"eslint-config-next": "14.0.3",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.33.2",
"typescript": "^5.3.3"
}
}
1 change: 0 additions & 1 deletion src/app/chapters/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"use client";
import React from "react";

export default function ChaptersPage() {
return <div>{/* add components here! */}</div>;
Expand Down
1 change: 0 additions & 1 deletion src/app/forstudents/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"use client";
import React from "react";

export default function ForStudentsPage() {
return <div>{/* add components here! */}</div>;
Expand Down
1 change: 0 additions & 1 deletion src/app/layout.js → src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"use client";
import React from "react";
import { Inter } from "next/font/google";
import "@mantine/core/styles.css";
import { MantineProvider, AppShell } from "@mantine/core";
Expand Down
2 changes: 0 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
"use client";
import React from "react";
import _ from "@/config/firebase";
import { ChaptersCard } from "@/chapters-card/ChaptersCard";

export default function Home() {
Expand Down
1 change: 0 additions & 1 deletion src/app/projects/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"use client";
import React from "react";

export default function ProjectsPage() {
return <div>{/* add components here! */}</div>;
Expand Down
1 change: 0 additions & 1 deletion src/app/team/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"use client";
import React from "react";

export default function TeamPage() {
return <div>{/* add components here! */}</div>;
Expand Down
1 change: 0 additions & 1 deletion src/chapters-card/ChaptersCard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { Card, Anchor } from "@mantine/core";
import "../chapters-card/ChaptersCard.css";

Expand Down
2 changes: 1 addition & 1 deletion src/components/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import Image from "next/image";
import { Button } from "@mantine/core";
import "@/components/Navbar/Navbar.css";
Expand All @@ -15,6 +14,7 @@ const items = links.map((link) => (
variant="transparent"
component="a"
href={link.link}
key={link.link}
color="white"
classNames={{ label: "nav-link" }}
>
Expand Down

0 comments on commit 0f48db6

Please sign in to comment.