module.exports = {
  extends: [
    'airbnb',
    // It removes global Flow types so we don’t have to.
    'plugin:flowtype/recommended',
  ],
  parser: 'babel-eslint',
  plugins: ['flowtype'],
  globals: {
    APP_NAME: true,
    APP_VERSION: true,
    DEFAULT_LOCALE: true,
    GRAPHQL_ENDPOINT: true,
    HOSTNAME: true,
    SENTRY_CLIENT_DNS: true,
    SENTRY_SERVER_DNS: true,
    window: true,
  },
  // Airbnb is great but very strict. Feel free to relax any rule.
  // prettier-ignore
  rules: {
    'arrow-parens': 0, // Does not work with Flow generic types
    'camelcase': 0, // Post_post can be Relay compiler generated type.
    'comma-dangle': 0, // Some files are still in ES5.
    'consistent-return': 0, // Flow.
    'curly': 0, // Prettier.
    'default-case': 0, // Flow.
    'flowtype/generic-spacing': 0, // Prettier.
    'flowtype/space-after-type-colon': 0, // Prettier.
    'guard-for-in': 0, // It's not a bug it's a feature.
    'import/first': 0, // Nobody cares about imports order.
    'import/prefer-default-export': 0, // Control freaky.
    'indent': 0, // Prettier.
    'no-confusing-arrow': 0, // This rule is confusing.
    'no-mixed-operators': 0, // Prettier.
    'no-nested-ternary': 0, // Control freaky.
    'no-param-reassign': 0, // We love param reassignment. Naming is hard.
    'no-plusplus': 0, // Control freaky.
    'no-restricted-syntax': 0, // Not needed with modern browsers.
    'no-shadow': 0, // Shadowing is a nice language feature. Naming is hard.
    'no-underscore-dangle': 0, // Control freaky.
    'react/forbid-prop-types': 0, // Control freaky.
    'react/jsx-boolean-value': 0, // Control freaky.
    'react/jsx-closing-bracket-location': 0, // Prettier.
    'react/jsx-filename-extension': 0, // JSX belongs to .js files.
    'react/jsx-indent': 0, // Prettier.
    'react/jsx-indent-props': 0, // Prettier.
    'react/jsx-wrap-multilines': 0, // Prettier.
    'react/no-danger': 0, // Control freaky.
    'react/no-unescaped-entities': 0, // Prettier.
    'react/no-unused-prop-types': 0, // Flow.
    'react/prop-types': 0, // Flow.
    'react/require-default-props': 0, // Flow.
    'template-curly-spacing': 0, // Prettier.
  },
};

@@ -2186,16 +2186,196 @@
 ettier.%0A
+    // allow console and debugger in development%0A    'no-console': process.env.NODE_ENV === 'production' ? 2 : 0,%0A    'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,%0A
   %7D,%0A%7D;%0A

Allow console and debugger in development