Skip to content
New issue

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

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

Already on GitHub? # to your account

ESLint 9.x expects eslint.config.json #350

Open
itmustbejj opened this issue Dec 20, 2024 · 1 comment
Open

ESLint 9.x expects eslint.config.json #350

itmustbejj opened this issue Dec 20, 2024 · 1 comment

Comments

@itmustbejj
Copy link

itmustbejj commented Dec 20, 2024

I came across this similar issue trying to generate a lib using the nx-extend/pulumi plugin after updating nx:

 NX   Could not find root flat config file

Error: Could not find root flat config file
    at getRootESLintFlatConfigFilename (/Users/user/my/path/node_modules/@nx/eslint/src/utils/flat-config.js:18:11)
    at lintConfigHasOverride (/Users/user/my/path/node_modules/@nx/eslint/src/generators/utils/eslint-file.js:177:164)
    at addLint (/Users/user/my/path/node_modules/@nx/js/src/generators/library/library.js:237:9)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async libraryGeneratorInternal (/Users/user/my/path/node_modules/@nx/js/src/generators/library/library.js:74:30)
    at async /Users/user/my/path/node_modules/nx/src/command-line/generate/generate.js:238:26
    at async handleErrors (/Users/user/my/path/node_modules/nx/src/utils/handle-errors.js:9:24)
    at async Object.handler (/Users/user/my/path/node_modules/nx/src/command-line/generate/command-object.js:14:22)

Luckily the migration is easy with npx nx g @nx/eslint:convert-to-flat-config, but the generator in these plugins will need to be updated to stop using .eslintrc.json.

@itmustbejj itmustbejj changed the title nx20 expects eslint.config.json nx expects eslint.config.json Dec 20, 2024
@itmustbejj itmustbejj changed the title nx expects eslint.config.json ESLint 9.x expects eslint.config.json Dec 20, 2024
@itmustbejj
Copy link
Author

I reverted to eslint v8.57.0 and everything works for now. Sorry for the noise.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant