-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESLint cache not breaking when expected #1440
Comments
In following these steps, I was able to reproduce the situation @pixelzoom ran into yesterday:
I see that yesterday @pixelzoom was incorrectly advised to run However: Therefore cache breaking is working correctly, and works in So the 2 opportunities for improvement I see in this issue are:
Alternatively, we could somehow try to raise developer awareness about those "gotchas". @pixelzoom and/or @zepumph please advise. |
This is a formal recommendation against using caching for typescript-eslint. Oh boy. . . https://typescript-eslint.io/troubleshooting/#can-i-use-eslints---cache-with-typescript-eslint. @samreid let's discuss further. |
@samreid and I found a very simple example of this with the rule: "@typescript-eslint/no-unnecessary-type-assertion" // In Buoyancy
const x = Slider.getBlarg()!; // string | null -> string;
// In Slider
public static getBlarg(): string|null {
return 'hi';
} The test:
In general @samreid and I don't think we should be running without caching during day-to-day development. In general, the cache works very well for us. There are some cases where it would be good to create a "no caching checkpoint". Perhaps something like before making an RC, before merging to main, etc. We noted that we have discussed changing CTQ to test without caching, but don't think that is worth it. We did though notice that CT-main runs 'lint' with caching. This probably isn't a problem, since the cache operates on relative paths, but we want to make that change anyways, just to be sure. We also want to tag phetsims/phet-info#222 in this issue, since we have found another overhead of ensuring that code changes don't negatively effect other developers. Branches is an industry standard in solving this problem, and we are excited to do more brainstorming about how to integrate that solution into our project. We will close this issue after a PSA at dev meeting. |
Signed-off-by: Michael Kauzmann <[email protected]>
@zepumph advised in #1440 (comment), so unassigning myself. Back to @samreid for PSA at dev meeting. |
PSA complete. Closing |
In #1424 @pixelzoom reported:
The text was updated successfully, but these errors were encountered: