module.exports = {
  root: true,
  parserOptions: {
    ecmaVersion: 2017,
    sourceType: 'module'
  },
  plugins: [
    'ember'
  ],
  extends: [
    'eslint:recommended',
    'plugin:ember/recommended'
  ],
  env: {
    browser: true
  },
  rules: {
  },
  overrides: [
    // node files
    {
      files: [<% if (blueprint !== 'app') { %>
        'index.js',<% } %>
        'testem.js',
        'ember-cli-build.js',
        'config/**/*.js'<% if (blueprint === 'app') { %>,
        'lib/*/index.js'<% } %><% if (blueprint !== 'app') { %>,
        'tests/dummy/config/**/*.js'<% } %>
      ],<% if (blueprint !== 'app') { %>
      excludedFiles: [
        'app/**',
        'addon/**',
        'tests/dummy/app/**'
      ],<% } %>
      parserOptions: {
        sourceType: 'script',
        ecmaVersion: 2015
      },
      env: {
        browser: false,
        node: true
      }<% if (blueprint !== 'app') { %>,
      plugins: ['node'],
      rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, {
        // add your custom rules and overrides for node files here
      })<% } %>
    }
  ]
};

module.exports = {
  root: true,
  parserOptions: {
    ecmaVersion: 2017,
    sourceType: 'module'
  },
  plugins: [
    'ember'
  ],
  extends: [
    'eslint:recommended',
    'plugin:ember/recommended'
  ],
  env: {
    browser: true
  },
  rules: {
  },
  overrides: [
    // node files
    {
      files: [<% if (blueprint !== 'app') { %>
        'index.js',<% } %>
        'testem.js',
        'ember-cli-build.js',
        'config/**/*.js'<% if (blueprint === 'app') { %>,
        'lib/*/index.js'<% } %><% if (blueprint !== 'app') { %>,
        'tests/dummy/config/**/*.js'<% } %>
      ],<% if (blueprint !== 'app') { %>
      excludedFiles: [
        'app/**',
        'addon/**',
        'tests/dummy/app/**',
        'addon-test-support/**'
      ],<% } %>
      parserOptions: {
        sourceType: 'script',
        ecmaVersion: 2015
      },
      env: {
        browser: false,
        node: true
      }<% if (blueprint !== 'app') { %>,
      plugins: ['node'],
      rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, {
        // add your custom rules and overrides for node files here
      })<% } %>
    }
  ]
};

Exclude addon-test-support from eslint node files
Exclude addon-test-support from eslint node files

This PR adds `addon-test-support` folder to excluded files from eslint override for node files.

Fixes #7652