
Security News
New Study Identifies 53 Slopsquatting Targets Across 5 Frontier LLMs
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.
@prisma-next/eslint-plugin
Advanced tools
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 28 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.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.

Security News
The White House’s Gold Eagle Initiative aims to coordinate AI-discovered vulnerabilities, validate findings, and accelerate patching across critical software.

Security News
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.