loop-payments / prisma-lint

A linter for Prisma schema files.
https://www.npmjs.com/package/prisma-lint
MIT License
128 stars 6 forks source link

Can we use it as an eslint plugin #297

Closed larryro closed 8 months ago

larryro commented 8 months ago

Hi, thank you for your awsome work.

we are using monorepo and using eslint to lint our projects. Separately Introducing the prisma-lint tool in the process is a bit heavy, can it be configured as a plugin under the overrides field in the .eslintrc.json file?

maxh commented 8 months ago

Eslint is for JavaScript / TypeScript source code. prisma-lint is for Prisma schema source code. Though the pattern of behavior is similar, the implementations are different. prisma-lint is based on a different AST and set of tooling unrelated to JavaScript.

What are you finding difficult about integrating prisma-lint? It should take <30 minutes to set up for a new repo.