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

eslintrc的filepath设成js/mjs,除了首次生成文件外会产生报错 #508

Open
1059431281 opened this issue Jun 5, 2024 · 2 comments

Comments

@1059431281
Copy link

Additional context

image
原因是js和mjs生成的文件内容不是字符串对象,JSON.parse无法正常转换
image

@1059431281
Copy link
Author

image

@YujiaCheng1996
Copy link

确实,目前通过
import autoImport from './.eslintrc-auto-import.json' with { type: 'json' };
引入。

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

No branches or pull requests

2 participants