# ember/template-style-concatenation 💼 This rule is enabled in the 📋 `template-lint-migration` [config](https://github.com/ember-cli/eslint-plugin-ember#-configurations). Disallows string concatenation in inline styles. String concatenation in style attributes can be error-prone and hard to maintain. Use the `{{html-safe}}` helper or a computed property instead. ## Rule Details This rule disallows string concatenation in `style` attributes. ## Examples Examples of **incorrect** code for this rule: ```gjs ``` ```gjs ``` Examples of **correct** code for this rule: ```gjs ``` ```gjs ``` ```gjs ``` ## Migration In your component: ```js import { htmlSafe } from '@ember/template'; export default class MyComponent extends Component { get computedStyle() { return htmlSafe(`width: ${this.width}px; color: ${this.color};`); } } ``` Then in template: ```gjs ``` ## Related Rules - [no-inline-styles](template-no-inline-styles.md) ## References - [eslint-plugin-ember template-style-concatenation](https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/template-style-concatenation.md) - [Ember.js Guides - htmlSafe](https://guides.emberjs.com/release/templates/writing-helpers/#toc_marking-strings-as-html-safe)