Skip to content

Empty styles object are not getting deleted #3

@vladimir-ivanov-epam

Description

@vladimir-ivanov-epam

Suppose the style:

const styles = StyleSheet.create({ header: { paddingTop: 15, flexDirection: 'row', height: 40, backgroundColor: '#D8D8D8' }, headerLabel: { marginLeft: 16, fontFamily: 'Roboto-Medium', color: 'rgba(0, 0, 0, 0.4)', fontSize: 14, }, headerImage: { color: 'rgba(0, 0, 0, 0.4)', position: 'absolute', right: 16, } });

After fixing it with the tool(suppose all of the styles are not used) the code becomes:

const styles = StyleSheet.create({ });

which is meaningless.

Would be great to have this thing removed as well(in case no references to styles are made).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions