text: /** @format */
  
  module.exports = {
    parser: 'babel-eslint',
    parserOptions: {
      ecmaVersion: 8,
      sourceType: 'module',
      ecmaFeatures: {
        classes: true,
        experimentalObjectRestSpread: true,
        jsx: true
      }
    },
    rules: {
      'no-duplicate-imports': [
        'error',
        {
          includeExports: true
        }
      ],
      'rest-spread-spacing': ['error', 'never'],
      semi: ['error', 'always'],
      quotes: ['error', 'single'],
      'jsx-quotes': ['error', 'prefer-double'],
      'prefer-spread': ['error'],
      'no-useless-call': ['error'],
      'no-trailing-spaces': ['error'],
      'space-before-blocks': ['error', 'always'],
      'no-unused-vars': ['error'],
      'no-floating-decimal': ['error'],
      'comma-dangle': ['error', 'never'],
      'array-bracket-spacing': ['error', 'never'],
      'object-curly-spacing': ['error', 'always'],
      'switch-colon-spacing': [
        'error',
        {
          after: true,
          before: false
        }
      ],
      'space-unary-ops': [
        'error',
        {
          words: true,
          nonwords: false
        }
      ],
      'space-before-function-paren': [
        'error',
        {
          anonymous: 'always',
          named: 'always',
          asyncArrow: 'always'
        }
      ],
      'keyword-spacing': [
        'error',
        {
          before: true,
          after: true
        }
      ],
      'key-spacing': [
        'error',
        {
          singleLine: {
            beforeColon: false,
            afterColon: true,
            mode: 'strict'
          },
          multiLine: {
            beforeColon: false,
            afterColon: true,
            mode: 'strict'
          }
        }
      ],
      'generator-star-spacing': [
        'error',
        {
          before: false,
          after: true
        }
      ],
      'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
      'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
      'no-alert': process.env.NODE_ENV === 'production' ? 'error' : 'warn'
    }
  };
  