medz / prisma-dart

Prisma Client Dart is an auto-generated type-safe ORM. It uses Prisma Engine as the data access layer and is as consistent as possible with the Prisma Client JS/TS APIs.
https://prisma.pub
BSD 3-Clause "New" or "Revised" License
450 stars 30 forks source link

generated_dart_client errors #343

Closed Oskar888 closed 6 months ago

Oskar888 commented 6 months ago

I use tutorial from there: https://prisma.pub/getting-started/setup.html After run pnpx prisma generate it generated folder called 'generated_dart_client' and in files client.dart, model.dart and prisma.dart there are lot of errors.

Zrzut ekranu 2024-03-7 o 19 24 48 Zrzut ekranu 2024-03-7 o 19 25 01 Zrzut ekranu 2024-03-7 o 19 25 14
medz commented 6 months ago

Hello, this is not a problem with the code generated by the prisma client, but that you have used more stringent lint rules. However, the code specification generated by the prisma client conforms to the Dart lint recommendation rule. It is a general library that cannot meet all third-party lint rules. At the same time, I recommend that if you use more stringent rules, you should exclude prisma client code.