
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
eslint-z 是一款可以多线程运行 eslint 的 cli 工具,用法很简单,只需将原来使用 eslint 运行的命令换成 eslint-z 即可。
//before
eslint -c .eslintrc.js \"./src/**/*.{js,ts}\"
//after
eslint-z -c .eslintrc.js \"./src/**/*.{js,ts}\"
npm install eslint-z -D
本包使用了 nodejs 的 worker_threads,且 worker_threads 不支持 nodejs12 以下的版本。
如果你的项目文件不多(通常少于 20 个文件),那么不建议使用多线程运行 eslint,因为创建线程池和管理线程都需要时间。
操作系统:macos10.12.6
处理器:3.06 GHz 6-Core Intel Xeon
内存:16 GB 4266 MHz DDR3
硬盘:512GB ssd
| 文件数量 | eslint | eslint-z |
|---|---|---|
| 99 | 37.94s | 26.14s |
| 199 | 52.91s | 32.12s |
| 299 | 67.62s | 36.16s |
| 399 | 79.34s | 43.26s |
| 499 | 90.67s | 52.44s |
| 599 | 107.82s | 58.86s |
| 999 | 156.11s | 76.92s. |
FAQs
multiple process to run eslint
The npm package eslint-z receives a total of 0 weekly downloads. As such, eslint-z popularity was classified as not popular.
We found that eslint-z demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.