import-js / eslint-plugin-import

ESLint plugin with rules that help validate proper imports.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When clearing typed linting options, also delete parserOptions.EXPERIMENTAL_useProjectService

JoshuaKGoldberg opened this issue · comments

Following typescript-eslint/typescript-eslint#8424 (comment): right now, eslint-plugin-import deletes the two known parserOptions from typescript-eslint's typed linting:

// @typescript-eslint/parser will parse the entire project with typechecking if you provide
// "project" or "projects" in parserOptions. Removing these options means the parser will
// only parse one file in isolate mode, which is much, much faster.
// https://github.com/import-js/eslint-plugin-import/issues/1408#issuecomment-509298962
delete parserOptions.project;
delete parserOptions.projects;

...but we added an EXPERIMENTAL_useProjectService too. Folks using it are experiencing the performance issues from #1408 again.