Skip to content

Commit

Permalink
更新npm script
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaojiaodubai committed Apr 27, 2024
1 parent b24e6cb commit e047103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"request": "launch",
"name": "Lint",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "lint", "--fix ${fileBasename}"],
"runtimeArgs": ["run", "lint", "--", "--fix", "${fileBasename}"],
"skipFiles": [
"<node_internals>/**"
],
Expand Down

3 comments on commit e047103

@northword
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感觉直接装 eslint vscode 插件,然后保存时自动执行 lint 可能更方便?

@jiaojiaodubai
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的 lint 会调用官方定制的一个 npm 包(在 ./.ci/),我不确定 VS Code 的 ES Lint 插件是不是能和它一起工作,目前开发主要是在 Scaffold 完成(因为涉及到创建 test case),最后回到 VS Code 执行 Lint 检查并提交

@northword
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的 lint 会调用官方定制的一个 npm 包(在 ./.ci/),我不确定 VS Code 的 ES Lint 插件是不是能和它一起工作,目前开发主要是在 Scaffold 完成(因为涉及到创建 test case),最后回到 VS Code 执行 Lint 检查并提交

如果本地安装了 eslint npm 包,且包含配置文件,vsc插件会使用本地的配置文件,所以理论上是可以正常工作的。

Please sign in to comment.