包
@typescript-eslint/*
包全部存储在 我们的 GitHub monorepo 中。monorepo 是使用 Nx 构建和发布的。
¥The @typescript-eslint/*
packages are all stored in our GitHub monorepo.
The monorepo is built and released with Nx.
typescript-eslint
从 v7 和 ESLint 9 开始,大多数用户应该使用 typescript-eslint
包。它导出 ESLint 的配置并将其他包的相应版本作为依赖带来。
¥As of v7 and ESLint 9, most users should be using the typescript-eslint
package.
It exports configurations for ESLint and brings along the corresponding versions of other packages as dependencies.
请参阅 入门 以获取有关在项目中设置 typescript-eslint 的指导。
¥See Getting Started for guidance on setting up typescript-eslint on a project.
其他软件包
¥Other Packages
本节中的每个页面都对应于我们有意向用户公开的包。除了 typescript-eslint
,它们还包括:
¥Each page in this section corresponds to a package we intentionally expose to users.
Alongside typescript-eslint
, they are:
-
@typescript-eslint/eslint-plugin
:一个 ESLint 插件,为 TypeScript 代码库提供 lint 规则。¥
@typescript-eslint/eslint-plugin
: An ESLint plugin which provides lint rules for TypeScript codebases. -
@typescript-eslint/eslint-plugin-tslint
:一个 ESLint 插件,允许在 ESLint 中运行 TSLint 规则,以帮助你从 TSLint 迁移到 ESLint。¥
@typescript-eslint/eslint-plugin-tslint
: An ESLint plugin that allows running TSLint rules within ESLint to help you migrate from TSLint to ESLint. -
@typescript-eslint/parser
:一个 ESLint 解析器,允许 ESLint 对 TypeScript 源代码进行 lint 处理。¥
@typescript-eslint/parser
: An ESLint parser which allows for ESLint to lint TypeScript source code. -
@typescript-eslint/rule-tester
:用于测试 ESLint 规则的实用程序。¥
@typescript-eslint/rule-tester
: A utility for testing ESLint rules. -
@typescript-eslint/scope-manager
:eslint-scope
的分支,增强以支持 TypeScript 功能。¥
@typescript-eslint/scope-manager
: A fork ofeslint-scope
, enhanced to support TypeScript functionality. -
@typescript-eslint/typescript-estree
:@typescript-eslint/parser
使用的底层代码将 TypeScript 源代码转换为与 ESTree 兼容的形式。¥
@typescript-eslint/typescript-estree
: The underlying code used by@typescript-eslint/parser
that converts TypeScript source code into an ESTree-compatible form. -
@typescript-eslint/utils
:一起使用 TypeScript + ESLint 的实用程序。¥
@typescript-eslint/utils
: Utilities for working with TypeScript + ESLint together.