fixbug:resolve parse errors
Description
When I used eslint9, I wanted to introduce an unplugin auto import eslint that ignored the file and changed the configuration file path to a file ending in. cjs or. mjs. The file was generated successfully, but the project reported an error and could not run. After debugging, it was found that the error was caused by using the JSON. parse method to parse these two formats of files
Linked Issues
Additional context
Run & review this pull request in StackBlitz Codeflow.
Same issue for me, hope it can be fixed quickly
Is there anyone who can pay attention to this issue? @antfu @userquin
Close in favor of #510, thanks!