module.exports = {
  extends: 'airbnb',
  parser: 'babel-eslint',
  env: {
    browser: true
  },
  rules: {
    'arrow-parens': ['error', 'as-needed'],
    'comma-dangle': ['error', 'never'],
    'eqeqeq': ['error', 'always'],
    'object-curly-spacing': ['error', 'never'],
    'no-console': 'off',
    'global-require': 'off',
    'import/no-dynamic-require': 'off',
    'import/prefer-default-export': 'off',
    'import/no-extraneous-dependencies': 'off',
    'react/no-multi-comp': 'off',
    'react/sort-comp': ['error', {
      order: [
        'static-variables',
        'static-methods',
        'instance-variables',
        'lifecycle',
        'everything-else',
        'render'
      ],
    }],
    'react/jsx-filename-extension': ['error', {extensions: ['.js']}],
    'react/jsx-closing-bracket-location': ['error', {
      nonEmpty: 'after-props',
      selfClosing: 'after-props'
    }],
    'jsx-a11y/label-has-for': 'off',
    'jsx-a11y/label-has-associated-control': 'off',

    'max-classes-per-file': 'off',
    'react/static-property-placement': 'off',
    'react/jsx-props-no-spreading': 'off',

    'object-curly-newline': ['error', {
      multiline: true,
      consistent: true,
      minProperties: 0
    }],

    'react/state-in-constructor': 'off',
    'react/jsx-one-expression-per-line': 'off',
    'react/no-array-index-key': 'off'
  }
};

module.exports = {
  extends: 'airbnb',
  parser: 'babel-eslint',
  env: {
    browser: true
  },
  rules: {
    'no-multiple-empty-lines': ["error", {"max": 2}],
    'arrow-parens': ['error', 'as-needed'],
    'comma-dangle': ['error', 'never'],
    'eqeqeq': ['error', 'always'],
    'object-curly-spacing': ['error', 'never'],
    'no-console': 'off',
    'global-require': 'off',
    'import/no-dynamic-require': 'off',
    'import/prefer-default-export': 'off',
    'import/no-extraneous-dependencies': 'off',
    'react/no-multi-comp': 'off',
    'react/sort-comp': ['error', {
      order: [
        'static-variables',
        'static-methods',
        'instance-variables',
        'lifecycle',
        'everything-else',
        'render'
      ],
    }],
    'react/jsx-filename-extension': ['error', {extensions: ['.js']}],
    'react/jsx-closing-bracket-location': ['error', {
      nonEmpty: 'after-props',
      selfClosing: 'after-props'
    }],
    'jsx-a11y/label-has-for': 'off',
    'jsx-a11y/label-has-associated-control': 'off',

    'max-classes-per-file': 'off',
    'react/static-property-placement': 'off',
    'react/jsx-props-no-spreading': 'off',

    'object-curly-newline': ['error', {
      multiline: true,
      consistent: true,
      minProperties: 0
    }],

    'react/state-in-constructor': 'off',
    'react/jsx-one-expression-per-line': 'off',
    'react/no-array-index-key': 'off'
  }
};

fix eslint config