# ember/template-no-nested-splattributes
💼 This rule is enabled in the 📋 `template-lint-migration` [config](https://github.com/ember-cli/eslint-plugin-ember#-configurations).
Disallow nested `...attributes` usage.
Having `...attributes` on multiple elements nested within each other in a component can cause unintended results. This rule prevents `...attributes` on an element if any of its parent elements already has `...attributes`.
## Rule Details
This rule disallows `...attributes` on an element when an ancestor element already has `...attributes`.
## Examples
### Incorrect ❌
```gjs
Text
```
```gjs
```
### Correct ✅
```gjs
Content
```
```gjs
Text
```
```gjs
first
second
```
## Migration
- Remove the inner `...attributes` declaration
## References
- [Ember Guides - Splattributes](https://guides.emberjs.com/release/components/component-arguments-and-html-attributes/#toc_html-attributes)
- [eslint-plugin-ember template-no-nested-splattributes](https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/template-no-nested-splattributes.md)