no-httpclientjsonpmodule
August 20, 2026 · View on GitHub
Restrict the usage of deprecated HttpClientJsonpModule.
It is planned for removal because of security issues; in the meantime, use withJsonpSupport() instead.
Documentation
Configuration
{
rules: {
'eslint-plugin-angular-modern/no-httpclientjsonpmodule': 'error'
}
}
Tip
This rule is not in the recommended or the standalone presets because @typescript-eslint/no-deprecated already reports this. See the documentation.
❌ Invalid
@NgModule({
imports: [
HttpClientJsonpModule,
],
})
export class AppModule {}
✅ Valid
export const appConfig: ApplicationConfig = {
providers: [
provideHttpClient(withJsonpSupport()),
],
};