ts-safeql / safeql

Validate and auto-generate TypeScript types from raw SQL queries in PostgreSQL.
https://safeql.dev
MIT License
1.35k stars 22 forks source link

Conflicting Peer Dependencies due to outdated ESLint version #258

Closed ProchaLu closed 2 months ago

ProchaLu commented 2 months ago

Describe the bug

The @ts-safeql/eslint-plugin package currently depends on TypeScript ESlint 7.18.0 that depends on ESLint 8.56.0, while the latest available version of ESLint is 9.9.1.. This discrepancy leads to conflicting peer dependencies when trying to install the plugin alongside other packages that require the latest version of ESLint.

 WARN  Issues with peer dependencies found
.
├─┬ @ts-safeql/eslint-plugin 3.4.1
│ └─┬ @typescript-eslint/utils 7.18.0
│   ├── ✕ missing peer eslint@^8.56.0
│   └─┬ @eslint-community/eslint-utils 4.4.0
│     └── ✕ missing peer eslint@"^6.0.0 || ^7.0.0 || >=8.0.0"
└─┬ eslint-config-flat-gitignore 0.3.0
  └── ✕ missing peer eslint@^9.5.0
✕ Conflicting peer dependencies:
  eslint  

To Reproduce

Steps to reproduce the behavior:

  1. Clone repo
  2. cd ts-safeql-peer-dependency-issue
  3. Install dependencies

or

  1. Initialize project pnpm init
  2. Install @ts-safeql/eslint-plugin and eslint-config-flat-gitignore using pnpm add -D @ts-safeql/eslint-plugin eslint-config-flat-gitignore

Expected behavior

All dependencies should install successfully without triggering peer dependency conflicts.

Screenshots

Screenshot 2024-09-05 at 12 26 24

Desktop (please complete the following information):

karlhorky commented 2 months ago

Maybe moving @typescript-eslint/utils from dependencies to peerDependencies would be an option?