![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@magijs/lint
Advanced tools
我们通常会在项目中使用 ESLint、Stylelint 来协助我们把控编码质量,为了实现低成本、高性能、更稳定地接入工具, 提供了开箱即用的 Lint 能力,包含以下特性:
我们通常会在项目中使用 ESLint、Stylelint 来协助我们把控编码质量,为了实现低成本、高性能、更稳定地接入工具, 提供了开箱即用的 Lint 能力,包含以下特性:
我们依据以下三条原则,研读了 ESLint 所有的配置项,定制出了心目中的「完美」ESLint 配置。
yarn add @magijs/lint@latest
# 执行eslint检查js代码规范
zalint eslint
# 执行stylelint检查样式规范
zalint stylelint
# 生成报告,同时执行eslint和stylelint
zalint report
#
zalint staged
# 指定扫描client目录
zalint eslint client
# 指定扫描client目录
zalint stylelint client
# 指定扫描client目录
zalint report client
我们也推荐使用 lint-staged 和 Husky,将 lint 与 Git 工作流结合使用,以便在提交代码时自动 lint 本次变更的代码。
https://alloyteam.github.io/eslint-config-alloy/?language=zh-CN
内置的 ESLint 规则列表:
内置的 Stylelint 配置:
FAQs
The npm package @magijs/lint receives a total of 16 weekly downloads. As such, @magijs/lint popularity was classified as not popular.
We found that @magijs/lint demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.