Skip to content

Commit

Permalink
refactor: Update animations message
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 committed Dec 10, 2024
1 parent e31e44f commit 1f802f8
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/linter/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ export const MESSAGE_INFO = {
ruleId: RULES["no-deprecated-api"],

message: ({name, replacement}: {name: string; replacement: string}) =>
`Bootstrap parameter '${name}' should be replaced with ${replacement}`,
`Bootstrap parameter '${name}' should be replaced with '${replacement}'`,
details: ({messageDetails}: {messageDetails: string}) => messageDetails,
},

Expand Down
2 changes: 1 addition & 1 deletion test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Generated by [AVA](https://avajs.dev).
{
column: 3,
line: 16,
message: 'Bootstrap parameter \'data-sap-ui-animation\' should be replaced with data-sap-ui-animation-mode',
message: 'Bootstrap parameter \'data-sap-ui-animation\' should be replaced with \'data-sap-ui-animation-mode\'',
messageDetails: 'Migrate to \'data-sap-ui-animation-mode\' attribute AnimationMode (https://ui5.sap.com/1.120/#/api/module:sap/ui/core/AnimationMode)',
ruleId: 'no-deprecated-api',
severity: 2,
Expand Down
Binary file modified test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.snap
Binary file not shown.
4 changes: 2 additions & 2 deletions test/lib/linter/snapshots/linter.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ Generated by [AVA](https://avajs.dev).
{
column: 4,
line: 17,
message: 'Bootstrap parameter \'data-sap-ui-animation\' should be replaced with data-sap-ui-animation-mode',
message: 'Bootstrap parameter \'data-sap-ui-animation\' should be replaced with \'data-sap-ui-animation-mode\'',
messageDetails: 'Migrate to \'data-sap-ui-animation-mode\' attribute AnimationMode (https://ui5.sap.com/1.120/#/api/module:sap/ui/core/AnimationMode)',
ruleId: 'no-deprecated-api',
severity: 2,
Expand Down Expand Up @@ -1353,7 +1353,7 @@ Generated by [AVA](https://avajs.dev).
{
column: 4,
line: 17,
message: 'Bootstrap parameter \'data-sap-ui-animation\' should be replaced with data-sap-ui-animation-mode',
message: 'Bootstrap parameter \'data-sap-ui-animation\' should be replaced with \'data-sap-ui-animation-mode\'',
ruleId: 'no-deprecated-api',
severity: 2,
},
Expand Down
Binary file modified test/lib/linter/snapshots/linter.ts.snap
Binary file not shown.
12 changes: 6 additions & 6 deletions test/lib/snapshots/index.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ Generated by [AVA](https://avajs.dev).
{
column: 4,
line: 17,
message: 'Bootstrap parameter \'data-sap-ui-animation\' should be replaced with data-sap-ui-animation-mode',
message: 'Bootstrap parameter \'data-sap-ui-animation\' should be replaced with \'data-sap-ui-animation-mode\'',
ruleId: 'no-deprecated-api',
severity: 2,
},
Expand Down Expand Up @@ -658,7 +658,7 @@ Generated by [AVA](https://avajs.dev).
{
column: 4,
line: 17,
message: 'Bootstrap parameter \'data-sap-ui-animation\' should be replaced with data-sap-ui-animation-mode',
message: 'Bootstrap parameter \'data-sap-ui-animation\' should be replaced with \'data-sap-ui-animation-mode\'',
ruleId: 'no-deprecated-api',
severity: 2,
},
Expand Down Expand Up @@ -1142,7 +1142,7 @@ Generated by [AVA](https://avajs.dev).
{
column: 4,
line: 17,
message: 'Bootstrap parameter \'data-sap-ui-animation\' should be replaced with data-sap-ui-animation-mode',
message: 'Bootstrap parameter \'data-sap-ui-animation\' should be replaced with \'data-sap-ui-animation-mode\'',
messageDetails: 'Migrate to \'data-sap-ui-animation-mode\' attribute AnimationMode (https://ui5.sap.com/1.120/#/api/module:sap/ui/core/AnimationMode)',
ruleId: 'no-deprecated-api',
severity: 2,
Expand Down Expand Up @@ -1681,7 +1681,7 @@ Generated by [AVA](https://avajs.dev).
{
column: 4,
line: 17,
message: 'Bootstrap parameter \'data-sap-ui-animation\' should be replaced with data-sap-ui-animation-mode',
message: 'Bootstrap parameter \'data-sap-ui-animation\' should be replaced with \'data-sap-ui-animation-mode\'',
ruleId: 'no-deprecated-api',
severity: 2,
},
Expand Down Expand Up @@ -2092,7 +2092,7 @@ Generated by [AVA](https://avajs.dev).
{
column: 4,
line: 17,
message: 'Bootstrap parameter \'data-sap-ui-animation\' should be replaced with data-sap-ui-animation-mode',
message: 'Bootstrap parameter \'data-sap-ui-animation\' should be replaced with \'data-sap-ui-animation-mode\'',
ruleId: 'no-deprecated-api',
severity: 2,
},
Expand Down Expand Up @@ -2503,7 +2503,7 @@ Generated by [AVA](https://avajs.dev).
{
column: 4,
line: 17,
message: 'Bootstrap parameter \'data-sap-ui-animation\' should be replaced with data-sap-ui-animation-mode',
message: 'Bootstrap parameter \'data-sap-ui-animation\' should be replaced with \'data-sap-ui-animation-mode\'',
ruleId: 'no-deprecated-api',
severity: 2,
},
Expand Down
Binary file modified test/lib/snapshots/index.ts.snap
Binary file not shown.

0 comments on commit 1f802f8

Please sign in to comment.