module.exports = {
  env: { node: true },
  extends: ['airbnb-base', 'prettier'],
  plugins: ['prettier'],
  rules: {
    'prettier/prettier': [
      'error',
      {
        trailingComma: 'es5',
        semi: false,
        singleQuote: true,
      },
    ],
    'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
  },
  overrides: [
    {
      files: ['**/*.test.js'],
      env: { mocha: true },
      rules: {
        'prefer-arrow-callback': {
          error: { allowNamedFunctions: true },
        },
        'func-names': ['off'],
      },
    },
  ],
}

module.exports = {
  env: { node: true },
  extends: ['airbnb-base', 'prettier'],
  plugins: ['prettier'],
  rules: {
    'prettier/prettier': [
      'error',
      {
        trailingComma: 'es5',
        semi: false,
        singleQuote: true,
      },
    ],
    'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
    'no-console': ['off'],  // node envs want console.log
  },
  overrides: [
    {
      files: ['**/*.test.js'],
      env: { mocha: true },
      rules: {
        'prefer-arrow-callback': {
          error: { allowNamedFunctions: true },
        },
        'func-names': ['off'],
      },
    },
  ],
}

Allow console.log in eslint config
Allow console.log in eslint config

no-console-log is a rule designed for client-side Javascript. This repo
uses server-side Javascript (aka Node). This repo wants to use
console.log.
