'use strict'

const { env, platform } = process

module.exports = {
  extends: [
    'eslint:recommended',
    'eslint-config-airbnb-base',
    'plugin:prettier/recommended',
  ],

  env: {
    es6: true,
    jest: true,
    node: true,
  },

  parserOptions: {
    sourceType: 'script',
  },

  rules: {
    // TODO FIXME workaround for git + prettier line ending issue on Travis for Windows OS:
    ...(env.TRAVIS &&
      platform === 'win32' && {
        'prettier/prettier': ['error', { endOfLine: 'auto' }],
      }),

    // TODO FIXME turn off temporary, to make eslint pass
    'class-methods-use-this': 'off',
    'consistent-return': 'off',
    'no-console': 'off',
    'no-multi-assign': 'off',
    'no-param-reassign': 'off',
    'no-restricted-syntax': 'off',
    'no-shadow': 'off',
    'no-underscore-dangle': 'off',
    'no-use-before-define': 'off',
  },
}

'use strict'

const { env, platform } = process

module.exports = {
  extends: [
    'eslint:recommended',
    'eslint-config-airbnb-base',
    'plugin:prettier/recommended',
  ],

  env: {
    jest: true,
  },

  parserOptions: {
    sourceType: 'script',
  },

  rules: {
    // TODO FIXME workaround for git + prettier line ending issue on Travis for Windows OS:
    ...(env.TRAVIS &&
      platform === 'win32' && {
        'prettier/prettier': ['error', { endOfLine: 'auto' }],
      }),

    // TODO FIXME turn off temporary, to make eslint pass
    'class-methods-use-this': 'off',
    'consistent-return': 'off',
    'no-console': 'off',
    'no-multi-assign': 'off',
    'no-param-reassign': 'off',
    'no-restricted-syntax': 'off',
    'no-shadow': 'off',
    'no-underscore-dangle': 'off',
    'no-use-before-define': 'off',
  },
}

Remove unused eslint env options
Remove unused eslint env options
