Replace strings with correct concatenation #6736
Labels
good first issue
Needs a contributor. Good starter issue
help wanted
Needs a contributor. Useful but outside maintainer backlog
maintenance
Development tasks, like refactoring, performance improvement, any non-user facing changes.
There are multiple sentences in code with old concatenation, replace them with the new one `<string>` (Require template literals instead of string concatenation):
Rule:
In ES2015 (ES6), we can use template literals instead of string concatenation.
Example in kiali code:
kiali/frontend/src/types/Health.ts
Line 276 in efd78c6
that would be great to replace with
text: `${prefix}:${thresholdStatus.status === NA ? 'No requests' : `${thresholdStatus.value.toFixed(2)}%`}`
More information: http://eslint.org/docs/rules/prefer-template
The text was updated successfully, but these errors were encountered: