Skip to main content

@typescript-eslint/eslint-plugin

npm: @typescript-eslint/eslint-plugin v8.27.0

ESLint 的 TypeScript 插件。✨

¥The TypeScript plugin for ESLint. ✨

信息

请参阅 入门 以获取有关如何使用 ESLint 对 TypeScript 代码进行 lint 的文档。

¥See Getting Started for documentation on how to lint your TypeScript code with ESLint.

@typescript-eslint/eslint-plugin 是一个 ESLint 插件,用于从 typescript-eslint 加载自定义规则和规则配置列表。这些规则依赖于 @typescript-eslint/parser 将 TypeScript 代码解析为 ESLint 兼容节点,并提供支持的 TypeScript 程序。

¥@typescript-eslint/eslint-plugin is an ESLint plugin used to load in custom rules and rule configurations lists from typescript-eslint. Those rules rely on @typescript-eslint/parser to parse TypeScript code into ESLint-compatible nodes, as well as provide backing TypeScript programs.

导出

¥Exports

名称描述
configs将配置的字符串名称映射到可扩展的 ESLint 配置设置
rules将规则的字符串名称映射到 规则对象