v0.8.3
Fixed
-
We now handle nested spreading properly and mark all variables inside it as used
The following code doesn't trigger a warning. However, if there is
props.style.id
used in props, we require the definition forid
.const Component = props => pug` div(...props.style) ` Component.propTypes = { style: PropTypes.shape({ one: PropTypes.string, }), }
-
Fixed false-errors when we use main props object inside iteration over any prop.
The following code doesn't trigger any reports:
const Component = props => pug` each item in props.list div(key=item.id ...item another=props.test) ` Component.propTypes = { list: PropTypes.arrayOf(PropTypes.shape({ id: PropTypes.string, })), test: PropTypes.bool, }