eslint-plugin-chakra-ui icon indicating copy to clipboard operation
eslint-plugin-chakra-ui copied to clipboard

Support component-specific props

Open yukukotani opened this issue 3 years ago • 1 comments

Currently, component-specific props such as Button's isActive prop are treated as non-chakra props.

This should be treated as Chakra props and sorted properly.

It's hard to list all props so code generation from chakra's source code is worth to consider.

yukukotani avatar Jan 29 '22 13:01 yukukotani

~In order to support Component Specific Props, we need to know the names of the components. For this reason, we need to decide how to deal with <Chakra.Button/>, <chakra.div>, and <RenamedChakraComponent/>, which we have ignored so far.~

~If it is too difficult, we may leave it for a while.~ I guess I was too tired to think straight.

no-yan avatar Feb 01 '22 18:02 no-yan