eslint-plugin-react-native icon indicating copy to clipboard operation
eslint-plugin-react-native copied to clipboard

no-empty-styles

Open DimitarNestorov opened this issue 6 years ago • 1 comments

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;

DimitarNestorov avatar May 21 '18 15:05 DimitarNestorov

Hi @dimitarnestorov, that would be a great optimization!

Intellicode avatar Jun 07 '18 16:06 Intellicode