Skip to content

Commit 9810fee

Browse files
committed
Grammar
1 parent e872137 commit 9810fee

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

src/lib/rules/eslint-plugin-angular-template-consistent-this.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ function createRuleListener(
208208
return;
209209
}
210210

211-
// 4) Interpolation of databinding property.
211+
// 4) Interpolation of data-binding property.
212212
if (options.properties === "explicit" && isImplicitReceiver) {
213213
return reportError(
214214
context,

tests/rules/eslint-plugin-angular-template-consistent-this.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ ruleTester.run(RULE_NAME, rule, {
4141
},
4242

4343
/**
44-
* Databinding.
44+
* Data-binding.
4545
*/
4646
{
4747
// Explicit.
@@ -64,7 +64,7 @@ ruleTester.run(RULE_NAME, rule, {
6464
},
6565

6666
/**
67-
* Databinding, with extra whitespaces and tabs.
67+
* Data-binding, with extra whitespaces and tabs.
6868
*/
6969
{
7070
// Explicit.
@@ -87,7 +87,7 @@ ruleTester.run(RULE_NAME, rule, {
8787
},
8888

8989
/**
90-
* Databinding, with line-breaks.
90+
* Data-binding, with line-breaks.
9191
*/
9292
{
9393
// Explicit.
@@ -226,7 +226,7 @@ ruleTester.run(RULE_NAME, rule, {
226226
},
227227

228228
/**
229-
* Databinding & interpolation with sub-properties.
229+
* Data-binding & interpolation with sub-properties.
230230
*/
231231
{
232232
// Explicit.
@@ -505,7 +505,7 @@ ruleTester.run(RULE_NAME, rule, {
505505
},
506506

507507
/**
508-
* Template *reference* variable (`#template`) accessed via databinding.
508+
* Template *reference* variable (`#template`) accessed via data-binding.
509509
*/
510510
{
511511
code: `
@@ -590,11 +590,11 @@ ruleTester.run(RULE_NAME, rule, {
590590

591591
invalid: [
592592
/**
593-
* Databinding.
593+
* Data-binding.
594594
*/
595595
convertAnnotatedSourceToFailureCase({
596596
description:
597-
"it fails with databinding implicit property where it should be an explicit property",
597+
"it fails with data-binding implicit property where it should be an explicit property",
598598
annotatedSource: `\
599599
<test [bar]="foo">{{this.bar}}</test>
600600
~~~`,
@@ -606,7 +606,7 @@ ruleTester.run(RULE_NAME, rule, {
606606
}),
607607
convertAnnotatedSourceToFailureCase({
608608
description:
609-
"it fails with databinding explicit property where it should be an implicit property",
609+
"it fails with data-binding explicit property where it should be an implicit property",
610610
annotatedSource: `\
611611
<test [bar]="this.foo">{{bar}}</test>
612612
~~~~~~~~`,
@@ -619,11 +619,11 @@ ruleTester.run(RULE_NAME, rule, {
619619
}),
620620

621621
/**
622-
* Databinding, with extra whitespaces and tabs.
622+
* Data-binding, with extra whitespaces and tabs.
623623
*/
624624
convertAnnotatedSourceToFailureCase({
625625
description:
626-
"it fails with databinding implicit property where it should be an explicit property",
626+
"it fails with data-binding implicit property where it should be an explicit property",
627627
annotatedSource: `\
628628
<test [bar]=" foo ">{{this.bar}}</test>
629629
~~~`,
@@ -635,7 +635,7 @@ ruleTester.run(RULE_NAME, rule, {
635635
}),
636636
convertAnnotatedSourceToFailureCase({
637637
description:
638-
"it fails with databinding explicit property where it should be an implicit property",
638+
"it fails with data-binding explicit property where it should be an implicit property",
639639
annotatedSource: `\
640640
<test [bar]=" this.foo ">{{bar}}</test>
641641
~~~~~~~~`,
@@ -648,11 +648,11 @@ ruleTester.run(RULE_NAME, rule, {
648648
}),
649649

650650
/**
651-
* Databinding, with line-breaks.
651+
* Data-binding, with line-breaks.
652652
*/
653653
convertAnnotatedSourceToFailureCase({
654654
description:
655-
"it fails with databinding implicit property where it should be an explicit property",
655+
"it fails with data-binding implicit property where it should be an explicit property",
656656
annotatedSource: `\
657657
<test [bar]="
658658
@@ -670,7 +670,7 @@ ruleTester.run(RULE_NAME, rule, {
670670
}),
671671
convertAnnotatedSourceToFailureCase({
672672
description:
673-
"it fails with databinding explicit property where it should be an implicit property",
673+
"it fails with data-binding explicit property where it should be an implicit property",
674674
annotatedSource: `\
675675
<test [bar]="
676676
@@ -835,7 +835,7 @@ test {{
835835
}),
836836

837837
/**
838-
* Databinding & interpolation with sub-properties.
838+
* Data-binding & interpolation with sub-properties.
839839
*/
840840
convertAnnotatedSourceToFailureCase({
841841
description:
@@ -884,11 +884,11 @@ test {{
884884
}),
885885

886886
/**
887-
* Template *reference* variable (`#template`) accessed via databinding.
887+
* Template *reference* variable (`#template`) accessed via data-binding.
888888
*/
889889
convertAnnotatedSourceToFailureCase({
890890
description:
891-
"it fails with implicit template reference variable via databinding where it should be explicit.",
891+
"it fails with implicit template reference variable via data-binding where it should be explicit.",
892892
annotatedSource: `\
893893
<test-elm-with-id #test_identifier>
894894
<test-elm-child [prop]="test_identifier.property"></test-elm-child>
@@ -905,7 +905,7 @@ test {{
905905
}),
906906
convertAnnotatedSourceToFailureCase({
907907
description:
908-
"it fails with explicit template reference variable via databinding where it should be implicit.",
908+
"it fails with explicit template reference variable via data-binding where it should be implicit.",
909909
annotatedSource: `\
910910
<test-elm-with-id #test_identifier>
911911
<test-elm-child [prop]="this.test_identifier.property"></test-elm-child>
@@ -1145,11 +1145,11 @@ test {{
11451145
}),
11461146

11471147
/**
1148-
* Databinding with weird indentation.
1148+
* Data-binding with weird indentation.
11491149
*/
11501150
convertAnnotatedSourceToFailureCase({
11511151
description:
1152-
"it fails with databinding implicit property where it should be an explicit property",
1152+
"it fails with data-binding implicit property where it should be an explicit property",
11531153
annotatedSource: `\
11541154
<test
11551155
*ngIf="
@@ -1190,7 +1190,7 @@ test {{
11901190
}),
11911191
convertAnnotatedSourceToFailureCase({
11921192
description:
1193-
"it fails with databinding implicit property where it should be an explicit property",
1193+
"it fails with data-binding implicit property where it should be an explicit property",
11941194
annotatedSource: `\
11951195
<test
11961196
*ngIf="

0 commit comments

Comments
 (0)