module.exports = {
  extends: ['./react-base.js'],
  plugins: ['react-native'],
  globals: {
    __DEV__: false,
    cancelAnimationFrame: false,
    cancelIdleCallback: false,
    fetch: false,
    navigator: false,
    requestAnimationFrame: false,
    requestIdleCallback: false,
  },
  rules: {
    'global-require': 0,
    'no-console': 0,
    'no-use-before-define': 0,
    // https://github.com/Intellicode/eslint-plugin-react-native
    'react-native/no-color-literals': 2,
    'react-native/no-inline-styles': 2,
    'react-native/no-unused-styles': 2,
    'react-native/split-platform-components': 2,
  },
};

module.exports = {
  extends: ['./react-base.js'],
  plugins: ['react-native'],
  globals: {
    __DEV__: false,
    cancelAnimationFrame: false,
    cancelIdleCallback: false,
    fetch: false,
    navigator: false,
    requestAnimationFrame: false,
    requestIdleCallback: false,
  },
  rules: {
    'global-require': 0,
    'no-console': 0,
    // https://github.com/Intellicode/eslint-plugin-react-native
    'react-native/no-color-literals': 2,
    'react-native/no-inline-styles': 2,
    'react-native/no-unused-styles': 2,
    'react-native/split-platform-components': 2,
  },
};

enable `no-use-before-define` rule