[react] @babel/eslint-parser expects presence of babel.config.js
See original GitHub issuesolve by:
if project is CRA:
- adding babel presets of CRA
if project is Next:
next/babel
if next is present
otherwise:
- try to detect babel.config.js / .babelrc / babel.config.json
- if missing, warn
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (12 by maintainers)
Top Results From Across the Web
Lint Parsing error: Cannot find module 'babel.config.js'
I couldn't find an answer to this question however, I found a workaround: You can add the babel configuration on the .eslintrc body...
Read more >@babel/eslint-parser | Yarn - Package Manager
Intro. Babel is a tool that helps you write code in the latest version of JavaScript. When your supported environments don't support certain...
Read more >eslint-plugin-jsdoc - npm
Inline ESLint config within @example JavaScript is allowed (or within @default , etc.), though the disabling of ESLint directives which are not ...
Read more >prettier ignore specific rule | The AI Search Engine You Control
Even though Prettier is configured in your ESLint configuration file as an ... that is mentioned in the error (e.g. babel.config.js ), you...
Read more >SSC600 Open Source Software Notice | ABB
babel/eslint-parser ... hoist-non-react-statics. 3.3.2. BSD-3-Clause hoopy. 0.1.4. MIT hpack.js ... source, and configuration files.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
🚀 🚀 🚀
The error comes from linting
.eslintrc.js
itself, which your command skips (eslint src
), but it also concerns any otherJS
file.