Skip to content

Commit 47e3c0f

Browse files
Fix lint issues: markdown formatting and eslint-doc-generator
Co-authored-by: NullVoxPopuli <[email protected]>
1 parent 5dcd192 commit 47e3c0f

22 files changed

Lines changed: 113 additions & 71 deletions

README.md

Lines changed: 69 additions & 69 deletions
Large diffs are not rendered by default.

docs/rules/template-eol-last.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Examples of **correct** code for this rule with `"never"` option:
5555
## Configuration
5656

5757
This rule takes one option:
58+
5859
- `"always"` (default): requires a newline at the end
5960
- `"never"`: disallows a newline at the end
6061

docs/rules/template-link-href-attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ Examples of **correct** code for this rule:
5656

5757
## References
5858

59-
- [MDN: <a> - The Anchor element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a)
59+
- [MDN: \<a\> - The Anchor element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a)
6060
- [WebAIM: Links and Hypertext](https://webaim.org/techniques/hypertext/)
6161
- [ember-template-lint link-href-attributes](https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/link-href-attributes.md)

docs/rules/template-no-array-prototype-extensions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Ember historically provided Array prototype extensions like `firstObject` and `l
1313
## Rule Details
1414

1515
This rule disallows using Ember Array prototype extensions in templates:
16+
1617
- `firstObject`
1718
- `lastObject`
1819
- `@each`

docs/rules/template-no-bare-strings.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Bare strings in templates make internationalization (i18n) difficult. This rule
1313
This rule disallows text content in templates that isn't wrapped in a translation helper or passed as a property.
1414

1515
The following are allowed:
16+
1617
- Whitespace-only strings
1718
- Strings containing only numbers and punctuation
1819
- Strings in an allowlist (configurable)

docs/rules/template-no-down-event-binding.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,19 @@ Examples of **correct** code for this rule:
5757
## Migration
5858

5959
Replace:
60+
6061
```gjs
6162
<button {{on "mousedown" this.action}}>
6263
```
6364

6465
With:
66+
6567
```gjs
6668
<button {{on "click" this.action}}>
6769
```
6870

6971
Or for keyboard support:
72+
7073
```gjs
7174
<button {{on "click" this.action}} {{on "keydown" this.handleKey}}>
7275
```

docs/rules/template-no-duplicate-landmark-elements.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ HTML5 landmark elements (like `<nav>`, `<header>`, `<footer>`, etc.) help screen
1313
This rule ensures that when multiple landmark elements of the same type appear in a template, each has a unique `aria-label` or `aria-labelledby` attribute.
1414

1515
Landmark elements checked:
16+
1617
- `header`
1718
- `footer`
1819
- `main`

docs/rules/template-no-form-action.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@ Examples of **correct** code for this rule:
5353
## Migration
5454

5555
Replace:
56+
5657
```gjs
5758
<form action="/submit">
5859
```
5960

6061
With:
62+
6163
```gjs
6264
<form {{on "submit" this.handleSubmit}}>
6365
```

docs/rules/template-no-inline-event-handlers.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,13 @@ Examples of **correct** code for this rule:
5757
## Migration
5858

5959
Replace:
60+
6061
```gjs
6162
<button onclick="alert('clicked')">
6263
```
6364

6465
With:
66+
6567
```gjs
6668
<button {{on "click" this.handleClick}}>
6769
```

docs/rules/template-no-invalid-link-text.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Link text should be descriptive and provide context about the destination. Gener
1111
## Rule Details
1212

1313
This rule disallows the following link text values:
14+
1415
- "click here"
1516
- "here"
1617
- "link"

0 commit comments

Comments
 (0)