
v7.3.0 版本包含了一个针对不相关问题的修复,该问题导致 eslint-config-airbnb 中的配置问题之前未被发现,现在开始出现失败。ESLint 期望配置是可 JSON 序列化的,因此使用 Infinity 或其他不可 JSON 序列化值的配置可能会在 ESLint 的某些部分引起未定义行为,包括缓存和 --print-config 命令行参数。在这种情况下,由于 ESLint 使用的 JSON 模式验证器存在缺口,直到现在才发现使用 Infinity 的问题,该问题的修复已实现并正在等待发布。
🌐 The v7.3.0 release included a fix for an unrelated issue that caused a configuration issue in eslint-config-airbnb that had previously gone unnoticed to start failing. ESLint expects configurations to be JSON-serializable, so configurations that use Infinity or other non-JSON-serializable values may cause undefined behavior in some parts of ESLint including caching and the --print-config command line argument. In this case, the use of Infinity was not caught until now due to a gap in the JSON schema validator that ESLint uses for which a fix has been implemented and is awaiting release.
为了给用户时间在 eslint-config-airbnb 更新版本可用时进行升级,此 v7.3.1 版本包含了针对 Infinity 的临时解决方法,即使其他地方存在未定义行为,也可以继续进行代码检查。
🌐 In order to give users time to upgrade to an updated version of eslint-config-airbnb when it becomes available, this v7.3.1 release includes a temporary workaround for Infinity that will allow linting to continue despite the undefined behavior elsewhere.
错误修复
🌐 Bug Fixes
