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

yarn lint is broken (cannot resolve babel-eslint) #286

Closed
srmagura opened this issue Jan 9, 2022 · 0 comments · Fixed by #289
Closed

yarn lint is broken (cannot resolve babel-eslint) #286

srmagura opened this issue Jan 9, 2022 · 0 comments · Fixed by #289

Comments

@srmagura
Copy link
Contributor

srmagura commented Jan 9, 2022

$ eslint --config .eslintrc "./**/*.js"
Error: Cannot find module 'babel-eslint'
    at ModuleResolver.resolve (C:\Projects\OSS\react-live\node_modules\eslint\lib\util\module-resolver.js:72:19)
    at loadFromDisk (C:\Projects\OSS\react-live\node_modules\eslint\lib\config\config-file.js:537:42)
    at Object.load (C:\Projects\OSS\react-live\node_modules\eslint\lib\config\config-file.js:587:20)
    at Config.loadSpecificConfig (C:\Projects\OSS\react-live\node_modules\eslint\lib\config.js:148:46)
    at new Config (C:\Projects\OSS\react-live\node_modules\eslint\lib\config.js:114:14)
    at new CLIEngine (C:\Projects\OSS\react-live\node_modules\eslint\lib\cli-engine.js:466:23)
    at Object.execute (C:\Projects\OSS\react-live\node_modules\eslint\lib\cli.js:204:28)
    at Object.<anonymous> (C:\Projects\OSS\react-live\node_modules\eslint\bin\eslint.js:78:28)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)

babel-eslint is deprecated and I recommend using the default ESLint parser. Would fix myself, but eslint-config-formidable also depends on babel-eslint.

@srmagura srmagura changed the title yarn lint is broken (cannot resolve babel-loader) yarn lint is broken (cannot resolve babel-eslint) Jan 9, 2022
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

Successfully merging a pull request may close this issue.

1 participant