We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ffacf7 commit 27de051Copy full SHA for 27de051
types/estree.d.ts
@@ -1,5 +1,13 @@
1
import { Program as EstreeProgram } from 'estree';
2
3
+/**
4
+ * This file augments the `estree` types to include a couple of types that are not built-in to `estree` that we're using.
5
+ * This is necessary because the `estree` types are used by ESLint, and ESLint does not natively support
6
+ * TypeScript types. Since we're only using a couple of them, we can just add them here, rather than
7
+ * installing typescript estree types.
8
+ *
9
+ * This also adds support for the AST mutation that the ESLint does to add parent nodes.
10
+ */
11
declare module 'estree' {
12
interface BaseNode {
13
parent: Node;
0 commit comments