
亮点
🌐 Highlights
你现在可以在配置文件中将 "ecmaVersion" 设置为 "latest",路径为 parserOptions :
🌐 You can now set "ecmaVersion" to "latest" under parserOptions in your configuration file:
{
"parserOptions": {
"ecmaVersion": "latest"
}
}
"ecmaVersion": "latest" 总是启用 ESLint 默认解析器中支持的最新 ECMAScript 版本。
请注意,此功能仅在你使用默认解析器时适用。如果你使用自定义解析器,请参阅解析器的文档以获取可用选项列表。
🌐 Please note that this feature applies only if you are using the default parser. If you’re using a custom parser, refer to the parser’s documentation for the list of available options.
增强功能
🌐 Enhancements
ed1da5d更新:ecmaVersion 允许使用 “latest” (#14720) (薛定谔的猫)104c0b5更新:改进 use-isnan 规则以检测Number.NaN(修复 #14715)(#14718)(Nitin Kumar)b08170b更新:实现 FlatConfigArray(参考 #13481)(#14321)(Nicholas C. Zakas)
文档
🌐 Documentation
19a871a文档:为 ESLint 插件开发者建议 lint 插件 (#14754) (Bryan Mishkin)aa87329文档:修复损坏的链接 (#14756) (Sam Chen)278813a文档:修复并为 new-cap 规则添加更多示例(修复 #12874)(#14725) (Nitin Kumar)1b8997a文档:修复 getRulesMetaForResults 链接语法 (#14723) (Brandon Mills)aada733文档:修复两个损坏的链接 (#14726) (Sam Chen)8972529文档:更新 README 团队和赞助商(ESLint Jenkins)
杂项
🌐 Chores
