Back to Nx

Remove Angular Eslint Rules

packages/angular/src/migrations/update-20-2-0/remove-angular-eslint-rules.md

22.7.1901 B
Original Source

Remove Angular ESLint Rules

Remove Angular ESLint rules that were removed in v19.0.0.

Sample Code Changes

Removes @angular-eslint/no-host-metadata-property, @angular-eslint/sort-ngmodule-metadata-arrays and @angular-eslint/prefer-standalone-component from any ESLint config file. Files to be searched include .eslintrc.json, .eslintrc.base.json, .eslint.config.js and .eslint.config.base.js.

Before
json
{
  "overrides": [
    {
      "files": ["*.ts"],
      "rules": {
        "@angular-eslint/no-host-metadata-property": ["error"],
        "@angular-eslint/sort-ngmodule-metadata-arrays": ["error"],
        "@angular-eslint/prefer-standalone-component": ["error"]
      }
    }
  ]
}
After
json
{
  "overrides": [
    {
      "files": ["*.ts"],
      "rules": {}
    }
  ]
}