no-http-reportprogress
August 20, 2026 · View on GitHub
Restrict the usage of HttpClient reportProgress deprecated option.
Use reportDownloadProgress() instead.
Documentation
Configuration
Important
reportDownloadProgress was introduced in Angular 22, so this rule should only be disabled in previous versions.
- in the
recommendedpreset - in the
fetchHttppreset - or just this rule:
{
rules: {
'eslint-plugin-angular-modern/no-http-reportprogress': 'error'
}
}
Tip
See the README for the global and presets configuration.
❌ Invalid
this.httpClient.post('/some/api', body, {
reportProgress: true,
});
const options: HttpClientCommonOptions = {
reportProgress: true,
};
this.httpClient.post('/some/api', body, options);
const options: HttpRequestOptions = {
reportProgress: true,
};
this.httpClient.post('/some/api', body, options);
✅ Valid
this.httpClient.post('/some/api', body, {
reportDownloadProgress: true,
});
const options: HttpClientCommonOptions = {
reportDownloadProgress: true,
};
this.httpClient.post('/some/api', body, options);
const options: HttpRequestOptions = {
reportDownloadProgress: true,
};
this.httpClient.post('/some/api', body, options);