# no-extra-deps > Disallow more dependency literals than factory parameters. ❕ **Suggestion** • ✅ **Recommended** • ❌ **Fixable** ## Details When the dependency array has more items than the factory function has parameters, the extra dependencies are loaded but inaccessible. This is almost always a mistake. Either a parameter was deleted or a dependency that is no longer needed should be removed. ### ✅ Correct ```js define(['foo'], (foo) => {}); ``` ```js define(['foo', 'bar'], (foo, bar) => {}); ``` ```js define(['foo'], {}); ``` ### ❌ Incorrect ```js define(['foo'], () => {}); ``` ```js define(['foo', 'bar'], (foo) => {}); ``` ```js // 'amd/no-extra-deps': ['warn', { ignoreValueFactory: false }] define(['foo'], {}); ``` ## Options | Option | Type | Default | Description | |---|---|---|---| | `ignoreValueFactory` | `boolean` | `true` | Ignore `define()` calls with value factories (`{}`). | ## Introduced 1.0.0