🌈 style(eslint): add eslint rules

This commit is contained in:
xuan
2022-11-26 14:35:05 +08:00
parent f3aa20f049
commit 99a920975f
245 changed files with 14909 additions and 14349 deletions
+4 -3
View File
@@ -1,5 +1,5 @@
import { Button, Radio, View } from '@tarojs/components'
import { FC, ReactNode } from 'react'
import type { FC, ReactNode } from 'react'
import classnames from 'classnames'
import styles from './index.module.scss'
@@ -25,7 +25,7 @@ const LayoutBlock: FC<PropsType> = (props) => {
return classObject
}
const handleClick = (event)=>{
const handleClick = (event) => {
console.log('event==>', event)
onClick && onClick()
}
@@ -34,7 +34,8 @@ const LayoutBlock: FC<PropsType> = (props) => {
<View
className={classnames(styles.layoutBlock, getClassName(), customClassName)}
style={customStyle}
onClick={handleClick}>
onClick={handleClick}
>
{children}
</View>
)