quavedev / eslint-plugin

6 stars 2 forks source link

TypeError: findBabelConfig is not a function or its return value is not iterable #9

Closed matheusccastroo closed 4 months ago

matheusccastroo commented 6 months ago

Sometimes this appears when running the plugin: TypeError: findBabelConfig is not a function or its return value is not iterable.

The problem is that we don't have a fallback if no babel config is found, the fix would probably be to fallback to an [] here: https://github.com/quavedev/eslint-plugin/blob/main/lib/util/parse.js#L26