Skip to content

Commit b2c0152

Browse files
Merge pull request #38 from Your-Ehsan/development
build(eslint): resolved eslint build errors
2 parents 5fe7a2a + 1f09b7c commit b2c0152

File tree

5 files changed

+28
-14
lines changed

5 files changed

+28
-14
lines changed

lint-staged.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/** @type {import('./lib/types').Configuration} */
22
export default {
3-
'*': ['pnpm format', 'pnpm lint']
3+
'*': ['pnpm format', 'pnpm lint', 'tsc-files --noEmit']
44
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@
119119
"react": "^19.0.0",
120120
"react-dom": "^19.0.0",
121121
"tailwindcss": "^4.0.7",
122+
"tsc-files": "^1.1.4",
122123
"typescript": "^5.7.3",
123124
"vite": "^6.1.1"
124125
},

pnpm-lock.yaml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/renderer/src/components/animata/interactive-grid.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function useGridLayout(): {
66
vertical: number
77
horizontal: number
88
}
9-
containerRef: React.RefObject<HTMLDivElement>
9+
containerRef: React.RefObject<HTMLDivElement | null>
1010
} {
1111
const containerRef = useRef<HTMLDivElement>(null)
1212
const [layout, setLayout] = useState({ vertical: 0, horizontal: 0 })
@@ -73,7 +73,7 @@ function Grid(): React.JSX.Element {
7373

7474
const squares = useMemo(() => plotSquares(horizontal, vertical, size), [horizontal, vertical])
7575
const [active, setActive] = useState(0)
76-
const timerRef = useRef<NodeJS.Timeout>()
76+
const timerRef = useRef<NodeJS.Timeout>(undefined)
7777

7878
const onMouseEnter = useCallback(() => {
7979
if (timerRef.current) {

src/renderer/src/components/ui/calendar.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react'
2-
import { ChevronLeft, ChevronRight } from 'lucide-react'
2+
// import { ChevronLeft, ChevronRight } from 'lucide-react'
33
import { DayPicker } from 'react-day-picker'
44
import { cn } from '@renderer/utils'
55
import { buttonVariants } from './button'
@@ -53,16 +53,16 @@ function Calendar({
5353
day_hidden: 'invisible',
5454
...classNames
5555
}}
56-
components={{
57-
// eslint-disable-next-line react/prop-types
58-
IconLeft: ({ className, ...props }) => (
59-
<ChevronLeft className={cn('h-4 w-4', className)} {...props} />
60-
),
61-
// eslint-disable-next-line react/prop-types
62-
IconRight: ({ className, ...props }) => (
63-
<ChevronRight className={cn('h-4 w-4', className)} {...props} />
64-
)
65-
}}
56+
// components={{
57+
// // eslint-disable-next-line react/prop-types
58+
// IconLeft: ({ className, ...props }) => (
59+
// <ChevronLeft className={cn('h-4 w-4', className)} {...props} />
60+
// ),
61+
// // eslint-disable-next-line react/prop-types
62+
// IconRight: ({ className, ...props }) => (
63+
// <ChevronRight className={cn('h-4 w-4', className)} {...props} />
64+
// )
65+
// }}
6666
showOutsideDays={showOutsideDays}
6767
{...props}
6868
/>

0 commit comments

Comments
 (0)