import '../globals.js';
// Copyright 2024, University of Colorado Boulder

/**
 * ESLint configuration for chipper.
 *
 * @author Sam Reid (PhET Interactive Simulations)
 * @author Michael Kauzmann (PhET Interactive Simulations)
 */

import { getBrowserConfiguration } from '../perennial-alias/js/eslint/browser.eslint.config.mjs';
import getNodeConfiguration from '../perennial-alias/js/eslint/getNodeConfiguration.mjs';
import rootEslintConfig from '../perennial-alias/js/eslint/root.eslint.config.mjs';

const browserFiles = [
  'js/*', // not recursive
  'js/sim-tests/**/*'
];

export default [
  ...rootEslintConfig,
  ...getBrowserConfiguration( { files: browserFiles } ),
  ...getNodeConfiguration( {
    files: [ '**/*' ],
    ignores: browserFiles
  } ),
  {
    rules: {
      'phet/bad-chipper-text': 'error'
    }
  }
];