Skip to content

Commit 99395c0

Browse files
committed
fix: update eslint config, fix lint errors
1 parent 61a7474 commit 99395c0

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

bun.lockb

-56.5 KB
Binary file not shown.

eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import eslint from "@eslint/js";
44
import tseslint from "typescript-eslint";
55

66
export default tseslint.config(
7+
{
8+
ignores: ["web/.next"],
9+
},
710
eslint.configs.recommended,
811
...tseslint.configs.recommended,
912
...tseslint.configs.stylistic,

web/.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

web/components/icons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const Logo: React.FC<IconSvgProps> = ({
1111
fill="none"
1212
height={size || height}
1313
viewBox="0 0 32 32"
14-
width={size || height}
14+
width={size || width}
1515
{...props}
1616
>
1717
<path

web/next.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ const nextConfig = {
33
reactStrictMode: true,
44
}
55

6+
// eslint-disable-next-line no-undef
67
module.exports = nextConfig

web/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
"@types/react-dom": "18.2.7",
1717
"autoprefixer": "10.4.19",
1818
"clsx": "^2.0.0",
19-
"eslint": "8.48.0",
20-
"eslint-config-next": "14.2.1",
2119
"intl-messageformat": "^10.5.0",
2220
"next": "14.2.1",
2321
"next-themes": "^0.2.1",

web/pages/api/hello.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
2-
import type { NextApiRequest, NextApiResponse } from 'next'
2+
import type { NextApiRequest, NextApiResponse } from "next";
33

4-
type Data = {
5-
name: string
4+
interface Data {
5+
name: string;
66
}
77

88
export default function handler(
9-
req: NextApiRequest,
10-
res: NextApiResponse<Data>
9+
_req: NextApiRequest,
10+
res: NextApiResponse<Data>,
1111
) {
12-
res.status(200).json({ name: 'John Doe' })
12+
res.status(200).json({ name: "John Doe" });
1313
}

web/postcss.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
// eslint-disable-next-line no-undef
12
module.exports = {
23
plugins: {
34
tailwindcss: {},
45
autoprefixer: {},
56
},
6-
}
7+
};
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import {nextui} from '@nextui-org/react'
1+
import { nextui } from '@nextui-org/react'
2+
import { Config } from 'tailwindcss'
23

3-
/** @type {import('tailwindcss').Config} */
4-
module.exports = {
4+
export default {
55
content: [
66
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
77
'./components/**/*.{js,ts,jsx,tsx,mdx}',
@@ -13,4 +13,4 @@ module.exports = {
1313
},
1414
darkMode: "class",
1515
plugins: [nextui()],
16-
}
16+
} satisfies Config

0 commit comments

Comments
 (0)