# ava/no-duplicate-modifiers πŸ“ Disallow duplicate test modifiers. ❌ This rule is [deprecated](https://github.com/avajs/eslint-plugin-ava/blob/main/docs/rules/no-duplicate-modifiers.md). Replaced by `ava/no-invalid-modifier-chain` which covers more cases. 🚫 This rule is _disabled_ in the βœ… `recommended` [config](https://github.com/avajs/eslint-plugin-ava#recommended-config). πŸ”§ This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix). Translations: [FranΓ§ais](https://github.com/avajs/ava-docs/blob/main/fr_FR/related/eslint-plugin-ava/docs/rules/no-duplicate-modifiers.md) Prevent the use of duplicate [test modifiers](https://github.com/avajs/ava/blob/main/docs/01-writing-tests.md). ## Examples ```js import test from 'ava'; test.only.only(t => {}); // ❌ test.only(t => {}); // βœ… test.serial.serial(t => {}); // ❌ test.serial(t => {}); // βœ… test.beforeEach.beforeEach(t => {}); // ❌ test.beforeEach(t => {}); // βœ… ```