Replies: 4 comments 21 replies
-
The ability to know when to clear a cache would be very helpful. Since that isn't one single definition, providing more hooks or events that let me respond to different points in the linting lifecycle would help me define that for myself. |
Beta Was this translation helpful? Give feedback.
-
From the editor integration point of view: maybe ESLint could behave as a long-running Language Server, providing highlighting and fixes via a well-known Microsoft LSP protocol? |
Beta Was this translation helpful? Give feedback.
-
As mentioned, right now we have some (experimental, off by default) logic that inspects For all other cases we assume we're in a persistent context and thus assume the disk could change - which has significant performance impacts. Note that our logic does struggle a bit with |
Beta Was this translation helpful? Give feedback.
-
Besides was has already been said here are the findings from maintaining the ESLint extension for VS Code:
|
Beta Was this translation helpful? Give feedback.
-
As we are continuing to gather requirements for the next version of ESLint, it's become clear that there are two primary ways ESLint is used:
eslint_d
).Further, it's now very clear that the demands of each type of session are very different. For plugins like
typescript-eslint
andeslint-plugin-import
, it's important to know when ESLint may be exiting so they can know whether or not to cache information. We're learning more about the difficulties of editor extensions, too, but we need your help.Feedback Wanted
In this discussion, I'd like to get feedback from integrator and ecosystem authors to see how the differences between short-lived and long-lived sessions affect them. Specifically:
We aren't talking deep implementation details or whether or not something is possible right now. What I'm hoping to get out of this is the wish list that everyone has in the back of their head. We are doing some serious rethinking of our APIs right now, so every seemingly outlandish wish is a possibility!
We want to make your life easier. Help us do it!
cc @bradzacher @ljharb @JoshuaKGoldberg @dbaeumer @alexander-doroshko
Beta Was this translation helpful? Give feedback.
All reactions