eslint-plugin-react-native
eslint-plugin-react-native copied to clipboard
no-empty-styles
Had an idea for a rule to throw in this case:
const React = require('react');
const { StyleSheet, View } = require('react-native');
const styles = StyleSheet.create({
list: {}
});
function SomeComponent(){
return <View style={styles.list} />;
}
module.exports = SomeComponent;
Hi @dimitarnestorov, that would be a great optimization!