• Home
Name Date Size #Lines LOC

..--

src/12-May-2024-3,7892,105

tests/eslint-utils/12-May-2024-251225

typings/12-May-2024-122104

CHANGELOG.mdD12-May-202428.1 KiB788240

LICENSED12-May-20241.1 KiB2217

README.mdD12-May-20244.3 KiB3827

jest.config.jsD12-May-2024491 2117

package.jsonD12-May-20241.7 KiB6766

tsconfig.build.jsonD12-May-2024392 1615

tsconfig.jsonD12-May-2024349 1413

README.md

1<h1 align="center">Utils for ESLint Plugins</h1>
2
3<p align="center">Utilities for working with TypeScript + ESLint together.</p>
4
5<p align="center">
6    <img src="https://github.com/typescript-eslint/typescript-eslint/workflows/CI/badge.svg" alt="CI" />
7    <a href="https://www.npmjs.com/package/@typescript-eslint/eslint-plugin"><img src="https://img.shields.io/npm/v/@typescript-eslint/eslint-plugin.svg?style=flat-square" alt="NPM Version" /></a>
8    <a href="https://www.npmjs.com/package/@typescript-eslint/eslint-plugin"><img src="https://img.shields.io/npm/dm/@typescript-eslint/eslint-plugin.svg?style=flat-square" alt="NPM Downloads" /></a>
9</p>
10
11## Note
12
13This package has inherited its version number from the `@typescript-eslint` project.
14Meaning that even though this package is `2.x.y`, you shouldn't expect 100% stability between minor version bumps.
15i.e. treat it as a `0.x.y` package.
16
17Feel free to use it now, and let us know what utilities you need or send us PRs with utilities you build on top of it.
18
19Once it is stable, it will be renamed to `@typescript-eslint/util` for a `4.0.0` release.
20
21## Exports
22
23| Name                                                           | Description                                                                                                                                                                                                                       |
24| -------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
25| [`ASTUtils`](./src/ast-utils)                                  | Tools for operating on the ESTree AST. Also includes the [`eslint-utils`](https://www.npmjs.com/package/eslint-utils) package, correctly typed to work with the types found in `TSESTree`                                         |
26| [`ESLintUtils`](./src/eslint-utils)                            | Tools for creating ESLint rules with TypeScript.                                                                                                                                                                                  |
27| `JSONSchema`                                                   | Types from the [`@types/json-schema`](https://www.npmjs.com/package/@types/json-schema) package, re-exported to save you having to manually import them. Also ensures you're using the same version of the types as this package. |
28| [`TSESLint`](./src/ts-eslint)                                  | Types for ESLint, correctly typed to work with the types found in `TSESTree`.                                                                                                                                                     |
29| [`TSESLintScope`](./src/ts-eslint-scope)                       | The [`eslint-scope`](https://www.npmjs.com/package/eslint-scope) package, correctly typed to work with the types found in both `TSESTree` and `TSESLint`                                                                          |
30| [`TSESTree`](../types/src/ts-estree.ts)                        | Types for the TypeScript flavor of ESTree created by `@typescript-eslint/typescript-estree`.                                                                                                                                      |
31| [`AST_NODE_TYPES`](../types/src/ast-node-types.ts)             | An enum with the names of every single _node_ found in `TSESTree`.                                                                                                                                                                |
32| [`AST_TOKEN_TYPES`](../types/src/ast-token-types.ts)           | An enum with the names of every single _token_ found in `TSESTree`.                                                                                                                                                               |
33| [`ParserServices`](../typescript-estree/src/parser-options.ts) | Typing for the parser services provided when parsing a file using `@typescript-eslint/typescript-estree`.                                                                                                                         |
34
35## Contributing
36
37[See the contributing guide here](../../CONTRIBUTING.md)
38