Skip to content

npm run lint fails: ESLint cannot find an eslint.config.* file #16

Closed

Description

@freshjuice-bot

The lint script (eslint src/) fails on the current main branch with:

Oops! Something went wrong! :(

ESLint: 10.9.1

ESLint couldn't find an eslint.config.* file.

From ESLint v9.0.0, the default configuration file is now eslint.config.*.
If you are using a .eslintrc.* file, please follow the migration guide
https://eslint.org/docs/latest/use/configure/migration-guide

npm run build passes (exit 0), but npm run lint exits with code 2. This reproduces on main and on all dependabot PR heads (also with eslint 10.8.0, so it is not caused by any dependency bump). The repository has no eslint.config.js/eslint.config.mjs/eslint.config.cjs file, which is required since ESLint v9.0.0.

Suggested fix: add an eslint.config.* file (flat config) and remove the legacy .eslintrc.* file if present.

Commented by the automated FreshJuice repo scan, run by Juicy (FreshJuice Bot app).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions