Skip to content

fix: Add TypeScript as peer dependency#117

Open
mrmckeb wants to merge 1 commit intolingui:mainfrom
mrmckeb:patch-1
Open

fix: Add TypeScript as peer dependency#117
mrmckeb wants to merge 1 commit intolingui:mainfrom
mrmckeb:patch-1

Conversation

@mrmckeb
Copy link

@mrmckeb mrmckeb commented Mar 14, 2026

The rule no-unlocalized-strings requires TypeScript to be installed alongside this plugin, but it isn't listed as either a dependency or a peerDependency of this project:

import { TypeFlags, UnionType, Type, Expression } from 'typescript'

This is OK for most setups, but stricter package manager setups won't require this to be defined (i.e. pnpm's enableGlobalVirtualStore).

In the meantime, a workaround is available for anyone affected users:

# pnpm-workspace.yaml

enableGlobalVirtualStore: true: false

packageExtensions:
  eslint-plugin-lingui:
    peerDependencies:
      typescript: "*"

@andrii-bodnar
Copy link
Contributor

Related to: #98

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants