text: module.exports = {
    globals: {
      server: true
    },
    root: true,
    parserOptions: {
      ecmaVersion: 2018,
      sourceType: 'module'
    },
    plugins: ['ember'],
    extends: ['eslint:recommended', 'plugin:ember/recommended'],
    env: {
      browser: true
    },
    rules: {
      'no-unused-vars': ['error', { args: 'none' }],
      'no-console': ['error', { allow: ['warn', 'error'] }],
  
      // ember-keyboard uses events
      'ember/no-on-calls-in-components': 'off'
    },
    overrides: [
      // node files
      {
        files: [
          '.eslintrc.js',
          '.template-lintrc.js',
          'ember-cli-build.js',
          'addon/styles/tailwind.js',
          'index.js',
          'testem.js',
          'blueprints/*/index.js',
          'config/**/*.js',
          'lib/**/*.js',
          'tests/dummy/config/**/*.js',
          'tests-node/**/*.js'
        ],
        excludedFiles: [
          'addon/**',
          'addon-test-support/**',
          'app/**',
          'tests/dummy/app/**'
        ],
        parserOptions: {
          sourceType: 'script'
        },
        env: {
          browser: false,
          node: true
        },
        plugins: ['node'],
        rules: Object.assign(
          {},
          require('eslint-plugin-node').configs.recommended.rules,
          {
            // add your custom rules and overrides for node files here
          }
        )
      },
  
      // test files
      {
        files: ['tests/**/*.js'],
        excludedFiles: ['tests/dummy/**/*.js'],
        env: {
          embertest: true
        }
      },
  
      // node test files
      {
        globals: {
          describe: true,
          it: true,
          beforeEach: true,
          afterEach: true
        },
        files: ['tests-node/**/*.js'],
        rules: {
          'node/no-unpublished-require': 'off'
        }
      }
    ]
  };
  