Skip to content

Commit

Permalink
fix: Duplicate param's value
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 committed Dec 11, 2024
1 parent f22175f commit c2ea127
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/linter/html/transpiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function lintBootstrapAttributes(tag: Tag, report: HtmlReporter) {
if (attributes.has(attributeName)) {
report.addMessage(MESSAGE.DUPLICATE_BOOTSTRAP_PARAM, {
name: attributeName,
value: attr.name.value,
value: attr.value.toString(),
}, attr.name);
}
attributes.add(attributeName);
Expand Down
12 changes: 6 additions & 6 deletions test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Generated by [AVA](https://avajs.dev).
{
column: 3,
line: 20,
message: 'Duplicate bootstrap parameter \'data-sap-ui-binding-syntax\' with value \'data-sap-ui-binding-syntax\'',
message: 'Duplicate bootstrap parameter \'data-sap-ui-binding-syntax\' with value \'complex\'',
ruleId: 'no-deprecated-api',
severity: 1,
},
Expand Down Expand Up @@ -125,7 +125,7 @@ Generated by [AVA](https://avajs.dev).
{
column: 3,
line: 25,
message: 'Duplicate bootstrap parameter \'data-sap-ui-origin-info\' with value \'data-sap-ui-origin-info\'',
message: 'Duplicate bootstrap parameter \'data-sap-ui-origin-info\' with value \'false\'',
ruleId: 'no-deprecated-api',
severity: 1,
},
Expand Down Expand Up @@ -440,7 +440,7 @@ Generated by [AVA](https://avajs.dev).
{
column: 3,
line: 15,
message: 'Duplicate bootstrap parameter \'data-sap-ui-on-init\' with value \'data-sap-ui-onInit\'',
message: 'Duplicate bootstrap parameter \'data-sap-ui-on-init\' with value \'console.log(\'Ready\')\'',
ruleId: 'no-deprecated-api',
severity: 1,
},
Expand Down Expand Up @@ -470,7 +470,7 @@ Generated by [AVA](https://avajs.dev).
{
column: 3,
line: 19,
message: 'Duplicate bootstrap parameter \'data-sap-ui-binding-syntax\' with value \'data-sap-ui-xx-bindingsyntax\'',
message: 'Duplicate bootstrap parameter \'data-sap-ui-binding-syntax\' with value \'complex\'',
ruleId: 'no-deprecated-api',
severity: 1,
},
Expand All @@ -485,7 +485,7 @@ Generated by [AVA](https://avajs.dev).
{
column: 3,
line: 20,
message: 'Duplicate bootstrap parameter \'data-sap-ui-binding-syntax\' with value \'data-sap-ui-xx-binding-syntax\'',
message: 'Duplicate bootstrap parameter \'data-sap-ui-binding-syntax\' with value \'complex\'',
ruleId: 'no-deprecated-api',
severity: 1,
},
Expand All @@ -500,7 +500,7 @@ Generated by [AVA](https://avajs.dev).
{
column: 3,
line: 22,
message: 'Duplicate bootstrap parameter \'data-sap-ui-preload\' with value \'data-sap-ui-xx-preload\'',
message: 'Duplicate bootstrap parameter \'data-sap-ui-preload\' with value \'async\'',
ruleId: 'no-deprecated-api',
severity: 1,
},
Expand Down
Binary file modified test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.snap
Binary file not shown.

0 comments on commit c2ea127

Please sign in to comment.