Discourage the use of shorthand properties and promote the preference for longhand properties in the codebase.
📋 This rule is enabled in plugin:@pandacss/all
.
❌ Examples of incorrect code:
import { css } from './panda/css';
const styles = css({ ml: '4' });
import { css } from './panda/css';
function App(){
return <div className={css({ bg: 'red.100' })} />;
};
import { Circle } from './panda/jsx';
function App(){
return <Circle _hover={{ pos: 'absolute' }} />;
}
✔️ Examples of correct code:
import { css } from './panda/css';
const styles = css({ marginLeft: '4' });
import { css } from './panda/css';
function App(){
return <div className={css({ background: 'red.100' })} />;
};
import { Circle } from './panda/jsx';
function App(){
return <Circle _hover={{ position: 'absolute' }} />;
}