Skip to content

Commit 5b86872

Browse files
committed
update readme
1 parent 3fbb275 commit 5b86872

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

transforms/no-implicit-this/README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ ember-no-implicit-this-codemod no-implicit-this path/of/files/ or/some**/*glob.j
2525
* [handlebars-with-hash-params](#handlebars-with-hash-params)
2626
* [handlebars-with-positional-params](#handlebars-with-positional-params)
2727
* [handlebars-without-params](#handlebars-without-params)
28+
* [void-elements](#void-elements)
2829
<!--FIXTURES_TOC_END-->
2930

3031
<!--FIXTURES_CONTENT_START-->
@@ -75,6 +76,12 @@ ember-no-implicit-this-codemod no-implicit-this path/of/files/ or/some**/*glob.j
7576
<SomeComponent @arg=foo />
7677
<SomeComponent @arg={{foo}} @bar={{property}} />
7778
<SomeComponent @arg={{foo}} @bar={{fn myAction}} />
79+
<Select
80+
data-test-select
81+
@items={{foo}}
82+
@onSelectItem={{action "setValue"}}
83+
@selectedValue={{foo}}
84+
/>
7885
7986
```
8087

@@ -88,6 +95,12 @@ ember-no-implicit-this-codemod no-implicit-this path/of/files/ or/some**/*glob.j
8895
<SomeComponent @arg=foo />
8996
<SomeComponent @arg={{this.foo}} @bar={{this.property}} />
9097
<SomeComponent @arg={{this.foo}} @bar={{fn this.myAction}} />
98+
<Select
99+
data-test-select
100+
@items={{this.foo}}
101+
@onSelectItem={{action "setValue"}}
102+
@selectedValue={{this.foo}}
103+
/>
91104
92105
```
93106
---
@@ -327,5 +340,37 @@ ember-no-implicit-this-codemod no-implicit-this path/of/files/ or/some**/*glob.j
327340
{{namespace/foo}}
328341
{{this.someGetter}}
329342
343+
```
344+
---
345+
<a id="void-elements">**void-elements**</a>
346+
347+
**Input** (<small>[void-elements.input.hbs](transforms/no-implicit-this/__testfixtures__/void-elements.input.hbs)</small>):
348+
```hbs
349+
<img
350+
id="Preview"
351+
src="{{previewImageUrl}}"
352+
class="image"
353+
>
354+
355+
<img
356+
id="Preview"
357+
src="{{previewImageUrl}}"
358+
class="image"
359+
/>
360+
```
361+
362+
**Output** (<small>[void-elements.output.hbs](transforms/no-implicit-this/__testfixtures__/void-elements.output.hbs)</small>):
363+
```hbs
364+
<img
365+
id="Preview"
366+
src="{{this.previewImageUrl}}"
367+
class="image"
368+
>
369+
370+
<img
371+
id="Preview"
372+
src="{{this.previewImageUrl}}"
373+
class="image"
374+
/>
330375
```
331376
<!--FIXTURES_CONTENT_END-->

0 commit comments

Comments
 (0)