Skip to content

Commit 2d99bc1

Browse files
committed
fix: lint config; fix: ts & lint errors
1 parent 235555e commit 2d99bc1

22 files changed

+226
-40
lines changed

.eslintrc.cjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
extends: ["next/core-web-vitals", "eslint-config-prettier", 'eslint:recommended', 'plugin:@typescript-eslint/recommended'],
3+
parser: '@typescript-eslint/parser',
4+
plugins: ['@typescript-eslint'],
5+
root: true,
6+
};

.eslintrc.json

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

components/AsideMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type Props = {
77
menu: MenuAsideItem[]
88
isAsideMobileExpanded: boolean
99
isAsideLgActive: boolean
10-
onAsideLgClose: Function
10+
onAsideLgClose: () => void
1111
}
1212

1313
export default function AsideMenu({

components/AsideMenuLayer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { useAppSelector } from '../src/stores/hooks'
99
type Props = {
1010
menu: MenuAsideItem[]
1111
className?: string
12-
onAsideLgCloseClick: Function
12+
onAsideLgCloseClick: () => void
1313
}
1414

1515
export default function AsideMenuLayer({ menu, className = '', ...props }: Props) {

components/BaseButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type Props = {
2020
disabled?: boolean
2121
roundedFull?: boolean
2222
isGrouped?: boolean
23-
onClick?: Function
23+
onClick?: (e: React.MouseEvent) => void
2424
}
2525

2626
export default function BaseButton({

components/BaseButtons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Children, cloneElement, ReactNode } from 'react'
1+
import React, { ReactNode } from 'react'
22

33
type Props = {
44
type?: string

components/CardBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type Props = {
1313
isModal?: boolean
1414
children: ReactNode
1515
footer?: ReactNode
16-
onClick?: Function
16+
onClick?: (e: React.MouseEvent) => void
1717
}
1818

1919
export default function CardBox({

components/CardBoxClient.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { mdiTrendingDown, mdiTrendingNeutral, mdiTrendingUp } from '@mdi/js'
22
import React from 'react'
3-
import { Client, ColorKey } from '../interfaces'
3+
import { Client } from '../interfaces'
44
import BaseLevel from './BaseLevel'
55
import CardBox from './CardBox'
66
import PillTag from './PillTag'

components/CardBoxTransaction.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { mdiCashMinus, mdiCashPlus, mdiCreditCard, mdiReceipt } from '@mdi/js'
22
import React from 'react'
3-
import { ColorKey, Transaction } from '../interfaces'
3+
import { Transaction } from '../interfaces'
44
import BaseLevel from './BaseLevel'
55
import CardBox from './CardBox'
66
import IconRounded from './IconRounded'

components/CardBoxWIdget.tsx renamed to components/CardBoxWidget.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import BaseButton from './BaseButton'
66
import BaseIcon from './BaseIcon'
77
import BaseLevel from './BaseLevel'
88
import CardBox from './CardBox'
9-
import NumberDynamic from './NumberDynamic'
109
import PillTagTrend from './PillTagTrend'
1110

1211
type Props = {

0 commit comments

Comments
 (0)