Closed eddie-dunn closed 4 months ago
@eddie-dunn I think this is the same as #328. Could you try the solution described in the issue?
It might be related -- whlie EDITOR is set in my shell, fish
, I don't remember if I used fish
when I reported the "Opening editor..." issue.
Unfortunately, I cannot try again as I'm now getting this error:
❯ npx eslint-interactive .
✖ Linting...
Error: Could not find config file.
at locateConfigFileToUse (/var/home/username/.npm/_npx/81916b408d06f96a/node_modules/eslint/lib/eslint/eslint.js:348:21)
at async calculateConfigArray (/var/home/username/.npm/_npx/81916b408d06f96a/node_modules/eslint/lib/eslint/eslint.js:383:49)
at async ESLint.lintFiles (/var/home/username/.npm/_npx/81916b408d06f96a/node_modules/eslint/lib/eslint/eslint.js:790:25)
at Core.lint (/var/home/username/.npm/_npx/81916b408d06f96a/node_modules/eslint-interactive/src/core.ts:64:19)
I'm assuming it's looking for an eslint config file? The repo does have one:
❯ ls -al | grep eslintrc
-rw-r--r--. 1 username username 5918 25 mar 11.24 .eslintrc.js
Probably because eslint-interactive is using ESLint v9. ESLint v9 loads the flat config by default, not the legacy config. The .eslintrc.js is not loaded by default because it is a legacy config.
To load the legacy config, start eslint-interactive with the ESLINT_USE_FLAT_CONFIG=false
environment variable set.
I ran eslint-interactive via
npx
. OS is Fedora Silverblue 39.