no-http-reportuploadprogress

August 20, 2026 · View on GitHub

Restrict the usage of HttpClient reportUploadProgress option, which is not supported by fetch based HTTP and throws a runtime error.

Documentation

Configuration

  • in the recommended preset
  • in the fetchHttp preset
  • or just this rule:
{
  rules: {
    'eslint-plugin-angular-modern/no-http-reportuploadprogress': 'error'
  }
}

Tip

See the README for the global and presets configuration.

❌ Invalid

this.httpClient.post('/some/api', body, {
  reportUploadProgress: true,
});
const options: HttpClientCommonOptions = {
  reportUploadProgress: true,
};
this.httpClient.post('/some/api', body, options);
const options: HttpRequestOptions = {
  reportUploadProgress: true,
};
this.httpClient.post('/some/api', body, options);

✅ Valid

this.httpClient.post('/some/api', body);
const options: HttpClientCommonOptions = {};
this.httpClient.post('/some/api', body, options);
const options: HttpRequestOptions = {};
this.httpClient.post('/some/api', body, options);

Back to README