chakra-ui / eslint-plugin-panda

Official ESLint Plugin for Panda CSS
76 stars 5 forks source link

`no-dynamic-styling` incorrectly identifies array syntax as dynamic #142

Closed idapartners closed 1 month ago

idapartners commented 1 month ago

At least for JSX. Haven't tried with css:

// Remove dynamic value. Prefer static styleseslint[@pandacss/no-dynamic-styling](https://github.com/chakra-ui/eslint-plugin-panda/blob/main/docs/rules/no-dynamic-styling.md)
<Stack direction={[ 'column', 'row' ]}>

// no error
<Stack direction={{ base: 'column', sm: 'row' }}>
anubra266 commented 1 month ago

Thanks for pointing it out @idapartners. FIx to be releases shortly