unplugin / unplugin/unplugin-auto-import

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

Open
#508 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3.8k
Forks
217
PR merge metrics
No merged PRs in 30d

Description

Additional context

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.