import playwrightPlugin from 'eslint-plugin-playwright';
import playwrightRules from '../rules/playwright.mjs';

export default [
  {
    languageOptions: {
      globals: playwrightPlugin.configs['flat/recommended'].languageOptions.globals,
    },
    plugins: {
      playwright: playwrightPlugin,
    },
    rules: {
      ...playwrightRules,

      // see: https://github.com/mskelton/eslint-plugin-playwright/pull/26
      'no-empty-pattern': 'off',
    },
  },
];
