Skip to content

Commit

Permalink
chore(no-input-rename): update rule docs
Browse files Browse the repository at this point in the history
  • Loading branch information
abaran30 committed Nov 17, 2022
1 parent 24a8233 commit ffe5fa5
Showing 1 changed file with 94 additions and 0 deletions.
94 changes: 94 additions & 0 deletions packages/eslint-plugin/docs/rules/no-input-rename.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,38 @@ class Test {
}
```

<br>

---

<br>

#### Default Config

```json
{
"rules": {
"@angular-eslint/no-input-rename": [
"error"
]
}
}
```

<br>

#### ❌ Invalid Code

```ts
@Directive({
selector: 'img[fooDirective]',
})
class Test {
@Input('notFooDirective') foo: Foo;
~~~~~~~~~~~~~~~~~
}
```

</details>

<br>
Expand Down Expand Up @@ -887,6 +919,68 @@ class Test {
}
```

<br>

---

<br>

#### Default Config

```json
{
"rules": {
"@angular-eslint/no-input-rename": [
"error"
]
}
}
```

<br>

#### ✅ Valid Code

```ts
@Directive({
selector: 'img[fooDirective]'
})
class Test {
@Input foo: Foo;
}
```

<br>

---

<br>

#### Default Config

```json
{
"rules": {
"@angular-eslint/no-input-rename": [
"error"
]
}
}
```

<br>

#### ✅ Valid Code

```ts
@Directive({
selector: 'img[fooDirective]'
})
class Test {
@Input('fooDirective') foo: Foo;
}
```

</details>

<br>

0 comments on commit ffe5fa5

Please sign in to comment.