unplugin / unplugin/unplugin-auto-import
eslintrc的filepath设成js/mjs,除了首次生成文件外会产生报错
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.8k
- Forks
- 217
- PR merge metrics
- No merged PRs in 30d
Description
Additional context
原因是js和mjs生成的文件内容不是字符串对象,JSON.parse无法正常转换
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the error with the eslintrc filepath set to a .js or .mjs file, then trace the generation path where JSON.parse processes the generated content. Done means subsequent generation no longer errors after the initial file creation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100