Update ESLint rule tests for flat config format

- Update RuleTester to use flat config languageOptions instead of
  eslintrc parser format
- Remove duplicate test case that ESLint v9 now detects
- Add Jest globals for test files
This commit is contained in:
Claude
2026-01-10 23:04:53 +00:00
parent 055b400f23
commit c397920d60
2 changed files with 19 additions and 15 deletions
+10
View File
@@ -210,4 +210,14 @@ export default tseslint.config(
'no-control-regex': 'off',
},
},
// Test files configuration
{
files: ['**/__tests__/**/*.{js,jsx,ts,tsx}', '**/*.test.{js,jsx,ts,tsx}'],
languageOptions: {
globals: {
...globals.jest,
},
},
},
)