Hasan Setiawan

Write, write, write give your wings on code!

Follow me on GitHub

JavaScript Ignore Spesific Line in Flow and Eslint

You got itches, with very single line error

That is very simple one, just add this in to your code

              
                // $FlowFixMe
                import { Picker } from 'native-base';

                const Item = Picker.Item;
                type Props = {};
                type State = {
                  selectedItem: any;
                  selected1: string;
                  results: {
                    items: Array;
                  };
                }
                export default class BikeType extends Component {
                  state: State; // eslint-disable-line
                ....
              
            

Have a look `// $FlowFixMe` and `// eslint-disable-line` those magic comment will make Flow and Eslint ignore the line