Skip to content

Commit 809ca5d

Browse files
committed
fix(eslint-plugin): drop conflicting project parser option
The @endo/internal config set both `projectService` and the legacy `project` glob in parserOptions. typescript-eslint 8.59 now rejects that combination ("Enabling 'project' does nothing when 'projectService' is enabled"), so every file failed to parse with a 0:0 error. Remove the legacy `project: [tsconfig.eslint-full.json]` mechanism (and its now-unused glob const and redundant `useProjectService` boolean). The project service supersedes it, discovering the nearest tsconfig per file and falling back to `defaultProject` for stray `*.js` files. Verified type-aware linting still engages (restrict-plus-operands fires on a probe) and packages now lint with 0 errors.
1 parent ba26f4c commit 809ca5d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/eslint-plugin/lib/configs/internal.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ const dynamicConfig = {
55
overrides: /** @type {*[]} */ ([]),
66
};
77

8+
// The project service discovers the nearest tsconfig per file and falls
9+
// back to `defaultProject` for stray `*.js` files. It supersedes the older
10+
// `project` glob, which must not be set alongside it: newer
11+
// typescript-eslint parsers reject enabling both.
812
const parserOptions = {
9-
useProjectService: true,
1013
sourceType: 'module',
1114
projectService: {
1215
allowDefaultProject: ['*.js'],

0 commit comments

Comments
 (0)