Open Mnigos opened 3 months ago
prefer-read-only-props rule should work with namespace syntax
prefer-read-only-props
namespace ItemsListElementSkeleton { export interface Props { withArtists?: boolean withPlayedAt?: boolean position?: number positionSize?: ItemPosition.Props['size'] positionClassName?: string withPlaysOrPlayTime?: boolean } } function ItemsListElementSkeleton({ position, positionSize, positionClassName, withArtists, withPlayedAt, withPlaysOrPlayTime, }: ItemsListElementSkeleton.Props) { ... } export { ItemsListElementSkeleton }
Should throw an error
Prop '...' should be read-only.
Should throw error if props are not readonly
v7.35.0
v8.57
v20.10.0
any update on this?
@Mnigos like everywhere on github, if there were an update, it'd be posted on the issue.
Is there an existing issue for this?
Description Overview
prefer-read-only-props
rule should work with namespace syntaxShould throw an error
Expected Behavior
Should throw error if props are not readonly
eslint-plugin-react version
v7.35.0
eslint version
v8.57
node version
v20.10.0