
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
@prisma-next/eslint-plugin
Advanced tools
ESLint plugin for Prisma Next query builder type checking and linting
ESLint plugin for Prisma Next query builder that provides TypeScript-powered linting and validation of query builder build() calls.
npm install --save-dev @prisma-next/eslint-plugin @typescript-eslint/parser
Add to your ESLint configuration:
// eslint.config.js
import prismaNext from '@prisma-next/eslint-plugin';
export default [
{
files: ['**/*.ts', '**/*.tsx'],
languageOptions: {
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
},
},
plugins: {
'@prisma-next': prismaNext,
},
rules: {
'@prisma-next/lint-build-call': 'error',
},
},
];
Or use the recommended flat configuration:
// eslint.config.js
import prismaNext from '@prisma-next/eslint-plugin';
export default [
prismaNext.configs['flat/recommended'],
];
{
"plugins": ["@prisma-next"],
"rules": {
"@prisma-next/lint-build-call": "error"
}
}
lint-build-callValidates query builder build() calls using TypeScript type information to catch common issues and enforce best practices.
.limit() calls that could fetch unlimited rows.limit() exceeds a configurable maximum value{
// Enforce limit() calls on SELECT queries (default: true)
requireLimit?: boolean;
// Maximum allowed limit value (default: 1000)
maxLimit?: number;
}
❌ Incorrect - Unbounded query:
const plan = sql
.from(userTable)
.select({
id: userTable.columns.id,
email: userTable.columns.email,
})
.build(); // Error: unbounded query
✅ Correct - Bounded query:
const plan = sql
.from(userTable)
.select({
id: userTable.columns.id,
email: userTable.columns.email,
})
.limit(100)
.build(); // OK
Basic usage:
{
'@prisma-next/lint-build-call': 'error'
}
Custom configuration:
{
'@prisma-next/lint-build-call': [
'error',
{
requireLimit: true,
maxLimit: 500,
}
]
}
Disable limit requirement:
{
'@prisma-next/lint-build-call': [
'error',
{
requireLimit: false
}
]
}
This plugin leverages TypeScript's type checker to provide accurate analysis of query builder calls. For best results:
@typescript-eslint/parser is configuredproject in parser options pointing to your tsconfig.json.ts, .tsx)This plugin is part of the Prisma Next project. See the main repository for contribution guidelines.
See the main Prisma Next repository for license information.
FAQs
ESLint plugin for Prisma Next query builder type checking and linting
The npm package @prisma-next/eslint-plugin receives a total of 456 weekly downloads. As such, @prisma-next/eslint-plugin popularity was classified as not popular.
We found that @prisma-next/eslint-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.