New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

prisma-lint

Package Overview
Dependencies
Maintainers
5
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prisma-lint - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

12

dist/rules/field-name-mapping-snake-case.js
import { z } from 'zod';
import { getRuleIgnoreParams } from '#src/common/ignore.js';
import { PRISMA_SCALAR_TYPES, getMappedName } from '#src/common/prisma.js';

@@ -15,2 +16,11 @@ import { toSnakeCase } from '#src/common/snake-case.js';

*
* This rule support selectively ignoring fields via the
* `prisma-lint-ignore-model` comment, like so:
*
* /// prisma-lint-ignore-model field-name-mapping-snake-case tenantId
*
* That will ignore only `tenantId` field violations for the model. Other
* fields will still be enforced. A comma-separated list of fields can be
* provided to ignore multiple fields.
*
* @example

@@ -101,2 +111,4 @@ * // good

Field: (model, field) => {
if (getRuleIgnoreParams(model, RULE_NAME).includes(field.name))
return;
const { fieldType } = field;

@@ -103,0 +115,0 @@ if (!isEnumField(context.enumNames, fieldType) &&

4

package.json
{
"name": "prisma-lint",
"version": "0.4.0",
"version": "0.5.0",
"description": "A linter for Prisma schema files.",

@@ -65,3 +65,3 @@ "repository": {

},
"packageManager": "yarn@4.0.1"
"packageManager": "yarn@4.1.1"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc