I'm having a linting issue with the Air Bnb eslint ruleset, this is my code:
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
class HomePage extends Component {
static navigationOptions = {
title: 'Whats on',
headerStyle: {
backgroundColor: '#1980F5',
},
headerTintColor: '#fff',
};
render() {
return (
<View>
<Text>Insert HomePage</Text>
</View>
);
}
}
export default HomePage;
after navigationOption it doesn't like the "=" (line 9) and shows the message in the title. Everything works like it should but i would like to know how i can get rid of the ESlint error without disabling the rule.
Thanks in advance