Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ESLint Flat config #385

Closed
sdavids opened this issue Jan 15, 2025 · 3 comments
Closed

Support ESLint Flat config #385

sdavids opened this issue Jan 15, 2025 · 3 comments

Comments

@sdavids
Copy link

sdavids commented Jan 15, 2025

  • eslint-plugin-jest-dom version: 5.5.0
  • node version: 22.13.0
  • npm version: 10.9.2

eslint.config.js

import jestDom from 'eslint-plugin-jest-dom';

export default [
  {
    files: ['**/*.test.js'],
    ...jestDom.configs['flat/recommended'],
  },
];

Flat config has been the default for 10 months now.

ESLint 8 has reached EOL

While you are at it, you might want to update README.md with flat config examples as well.

@sdavids
Copy link
Author

sdavids commented Jan 15, 2025

Related issue

@G-Rath
Copy link
Collaborator

G-Rath commented Jan 15, 2025

@sdavids can you provide more details to what you're actually running into? We already support ESLint v9 + flat config (with examples of that in our README), and I personally have been using it in cjs and mjs configs without any issues

@sdavids
Copy link
Author

sdavids commented Jan 16, 2025

PEBCAK

files: ['src/**/*.test.js'] does not match src/a.test.js

Should have used npx eslint --inspect-config 😕

@sdavids sdavids closed this as completed Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants