【前端动态】ESLint v8.52.0 版本已发布

72 阅读2分钟

该版本添加了一些新功能,并修复了上一版本中发现的几个错误。

Highlights

Unused eslint-enable directives

The CLI option --report-unused-disable-directives and the config option reportUnusedDisableDirectives:true now also report and autofix unused eslint-enable directives. An eslint-enable directive is considered unused if it doesn’t match with any eslint-disable directives, meaning that it doesn’t re-enable any rules.。

/* eslint-disable no-console */

console.log("hello");

/* eslint-enable no-continue -- this directive is unused */

Features

  • 70648ee feat: report-unused-disable-directive to report unused eslint-enable (#17611) (Yosuke Ota)

BugFix

Documentation

Chores