Skip to content

Commit

Permalink
configure eslint and autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
vuolen committed Jul 19, 2024
1 parent 37d0cdd commit f9259ef
Show file tree
Hide file tree
Showing 6 changed files with 350 additions and 66 deletions.
11 changes: 10 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"extends": ["next/core-web-vitals", "prettier"]
"extends": [
"next/core-web-vitals",
"airbnb",
"airbnb-typescript",
"prettier",
"plugin:react/jsx-runtime"
],
"parserOptions": {
"project": "./tsconfig.json"
}
}
2 changes: 1 addition & 1 deletion components/Carousel.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import styles from "@/styles/Carousel.module.css";
import React, { useCallback, useEffect, useRef } from "react";
import Link from "next/link";
import {
Expand All @@ -7,6 +6,7 @@ import {
EmblaOptionsType,
} from "embla-carousel";
import useEmblaCarousel from "embla-carousel-react";
import styles from "@/styles/Carousel.module.css";
import { NextButton, PrevButton, usePrevNextButtons } from "./CarouselArrows";

const TWEEN_FACTOR_BASE = 0.84;
Expand Down
8 changes: 4 additions & 4 deletions components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import sato_logo_nav from "../public/sato_logo_nav.png";

type Anchor = "right";

const Navbar = () => {
function Navbar() {
const [state, setState] = useState({
right: false,
});
Expand Down Expand Up @@ -70,7 +70,7 @@ const Navbar = () => {
{["Inbox", "Starred", "Send email", "Drafts"].map((text, index) => (
<ListItem key={text} disablePadding>
<ListItemButton>
<ListItemIcon></ListItemIcon>
<ListItemIcon />
<ListItemText primary={text} />
</ListItemButton>
</ListItem>
Expand All @@ -81,7 +81,7 @@ const Navbar = () => {
{["All mail", "Trash", "Spam"].map((text, index) => (
<ListItem key={text} disablePadding>
<ListItemButton>
<ListItemIcon></ListItemIcon>
<ListItemIcon />
<ListItemText primary={text} />
</ListItemButton>
</ListItem>
Expand Down Expand Up @@ -117,6 +117,6 @@ const Navbar = () => {
</nav>
</div>
);
};
}

export default Navbar;
Loading

0 comments on commit f9259ef

Please sign in to comment.