ESLint VSCode plugin not working with eslint.config.mjs

I have an Express.js API, and I’m using the latest version of ESLint (9.10.0). I’ve been trying to enable code warnings and errors in VS Code, but when I run npx eslint --init, ESLint creates an eslint.config.mjs file instead of a .eslintrc file, even though the ESLint plugin documentation mentions that it works with .eslintrc.

I also tried creating my own .eslintrc.js file manually with the following configuration:

module.exports = {
    env: {
        commonjs: true,
        es2021: true,
        node: true
    },
    extends: [
        'airbnb-base'
    ],
    parserOptions: {
        ecmaVersion: 12
    },
    rules: {}
};

However, it still doesn’t work. VS Code is not showing any warnings or errors from ESLint. I’ve tried restarting VS Code and reloading the extensions, but nothing seems to help.

Any suggestions on how to resolve this?