Skip to content

Commit 80a1dfb

Browse files
committed
build(eslint-plugin-react-hooks): pre-build compiler types
1 parent 6cd87fc commit 80a1dfb

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

packages/eslint-plugin-react-hooks/__tests__/ReactCompilerRule-test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {RuleTester as ESLintTester} from 'eslint';
1010
import ReactCompilerRule from '../src/rules/ReactCompiler';
1111

1212
const ESLintTesterV8 = require('eslint-v8').RuleTester;
13-
const ESLintTesterV9 = require('eslint-v9').RuleTester;
1413

1514
/**
1615
* A string template tag that removes padding from the left side of multi-line strings

packages/eslint-plugin-react-hooks/__tests__/ReactCompilerRuleTypescript-test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {RuleTester} from 'eslint';
99
import ReactCompilerRule from '../src/rules/ReactCompiler';
1010

1111
const ESLintTesterV8 = require('eslint-v8').RuleTester;
12-
const ESLintTesterV9 = require('eslint-v9').RuleTester;
1312

1413
/**
1514
* A string template tag that removes padding from the left side of multi-line strings

packages/eslint-plugin-react-hooks/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"react"
2222
],
2323
"scripts": {
24+
"dependencies": "cd ../../compiler/packages/babel-plugin-react-compiler && yarn && yarn tsc -b",
2425
"test": "jest",
2526
"typecheck": "tsc --noEmit"
2627
},

packages/eslint-plugin-react-hooks/tsconfig.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,10 @@
1212
"babel-plugin-react-compiler": ["../../compiler/packages/babel-plugin-react-compiler/src/index.ts"]
1313
}
1414
},
15-
"include": ["src/**/*.ts", "__tests__/**/*.ts"]
15+
"include": ["src/**/*.ts", "__tests__/**/*.ts"],
16+
"references": [
17+
{
18+
"path": "../../compiler/packages/babel-plugin-react-compiler/tsconfig.json"
19+
}
20+
]
1621
}

0 commit comments

Comments
 (0)