nx/packages/angular/src/migrations/update-20-2-0/remove-angular-eslint-rules.md
Isaac Mann 8b11d8bfe5
docs(core): add migrations docs for 20.x (#30186)
Adds migration docs for all 20.0 through 20.4 migrations
2025-02-27 15:58:41 -05:00

43 lines
990 B
Markdown

#### 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`.
{% tabs %}
{% tab label="Before" %}
```json {% fileName="apps/app1/.eslintrc.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"]
}
}
]
}
```
{% /tab %}
{% tab label="After" %}
```json {% fileName="apps/app1/.eslintrc.json" %}
{
"overrides": [
{
"files": ["*.ts"],
"rules": {}
}
]
}
```
{% /tab %}
{% /tabs %}