#3211·emotion

@emotion/eslint-plugin should support eslint 9

Author: KeysoxCreated Jul 12, 2024Updated Sep 17, 2026
Labelsfeature requestneeds triage

The problem

ESLint v9.0.0 was released back in April and we'd like to use @emotion/eslint-plugin but npm complains:

bash
npm error Could not resolve dependency:
npm error peer eslint@"6 || 7 || 8" from @emotion/[email protected]

Proposed solution

It would be great if we could update https://github.com/emotion-js/emotion/blob/56109e79adcf916144250b52ed579f13e4e6e0cf/packages/eslint-plugin/package.json#L28 to "eslint": ">=6" so that we're able to upgrade when new versions of ESLint come out today and into the future.

Alternative solutions

Alternatively, we could change it to "eslint": "6 || 7 || 8 || 9"

Additional context

I haven't tested whether this package works with new ESLint so perhaps there's a reason to not update the peer. If that's the case, it would be great to update what's needed for compatability!