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 8eaa269 commit 74ae7e8
Show file tree
Hide file tree
Showing 5 changed files with 344 additions and 61 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"
}
}
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 @@ -51,7 +51,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 @@ -62,7 +62,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 @@ -96,6 +96,6 @@ const Navbar = () => {
))}
</nav>
);
};
}

export default Navbar;
Loading

0 comments on commit 74ae7e8

Please sign in to comment.