From 37c49045aed199523ad8b2b1b80e3ff024b079fb Mon Sep 17 00:00:00 2001 From: Petra Jaros Date: Fri, 30 Aug 2024 11:54:20 -0400 Subject: [PATCH] Point ESLint at all `tsconfig.json`s Otherwise it can't lint everything. This is solved with the [`projectService` option][1] in [`@typescript-eslint/parser` v8][2]. However, we're stuck firmly on v5 for now. [1]: https://github.com/typescript-eslint/typescript-eslint/pull/8031/files?short_path=f55b3fe#diff-f55b3fe275ea73e5e0cbfaf72c238d8fa863819992fe17e23668d1f0376a18b4 [2]: https://github.com/typescript-eslint/typescript-eslint/commit/b9796c1ac49d36a9d372794371c558589c19f5a3 --- eslint.packages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslint.packages.js b/eslint.packages.js index b738235b..90e1ab56 100644 --- a/eslint.packages.js +++ b/eslint.packages.js @@ -1,7 +1,7 @@ module.exports = { extends: ['./node_modules/hd-scripts/eslint/ts.js'], parserOptions: { - project: './tsconfig.json', + project: ['./tsconfig.json', 'packages/*/tsconfig.json'], ecmaFeatures: { jsx: true, },