eslint-plugin-react-native
eslint-plugin-react-native copied to clipboard
Default exports and no-color-literals
Hi!
The no-color-literals does not mark the following case as error:
export default StyleSheet.create({
container: {
color: '#fff'
}
});
If I pull out the stylesheet into a variable and export that, than it works as expected.
const styles = StyleSheet.create({
container: {
color: '#fff'
}
});
export default styles;
The first version should omit an error as well.