Deprecated

August 17, 2026 · View on GitHub

For performance, to avoid redundant checks, this library presets do not enable the rules reporting deprecated features, which can already be reported by @typescript-eslint/no-deprecated:

const tsEslint = require('typescript-eslint');

module.exports = defineConfig({
  files: ['**/*.ts'],
  languageOptions: {
    parserOptions: {
      projectService: true, // ⬅️ required
    },
  },
  extends: [
    tsEslint.configs.recommendedTypeChecked, // or `strictTypeChecked`
  ],
  rules: {
    '@typescript-eslint/no-deprecated': 'error' // ⬅️
  },
});

Tip

The rule is already enabled in the TypeScript ESLint strictTypeChecked preset.

Alternative lint rules

The TypeScript ESLint rule above requires typed linting. If for any reason, it cannot be enabled, the following rules are provided as a convenience and can be enabled individually.

Standalone

const angularModern = require('eslint-plugin-angular-modern');

module.exports = defineConfig({
  extends: [
    angularModern.configs.standalone, // or `recommended`
  ],
  rules: {
    'eslint-plugin-angular-modern/no-platformbrowserdynamic': 'error',
    'eslint-plugin-angular-modern/no-routertestingmodule': 'error',
    'eslint-plugin-angular-modern/no-httpclientmodule': 'error',
    'eslint-plugin-angular-modern/no-httpclientjsonpmodule': 'error',
    'eslint-plugin-angular-modern/no-httpclientxsrfmodule': 'error',
    'eslint-plugin-angular-modern/no-httpclienttestingmodule': 'error',
    'eslint-plugin-angular-modern/no-browseranimationsmodule': 'error',
    'eslint-plugin-angular-modern/no-noopanimationsmodule': 'error',
  },
});

Functional

const angularModern = require('eslint-plugin-angular-modern');

module.exports = defineConfig({
  extends: [
    angularModern.configs.functional, // or `recommended`
  ],
  rules: {
    'eslint-plugin-angular-modern/no-canload-class': 'error',
  },
});

Back to README