Skip to content

Commit cf0e65a

Browse files
dont show rules direct to docs
1 parent 5a06e8e commit cf0e65a

File tree

1 file changed

+6
-43
lines changed

1 file changed

+6
-43
lines changed

docs/tools/prisma-lint.md

Lines changed: 6 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ Prisma Lint will run on files with the following extensions:
2323
Prisma Lint supports the following config files:
2424

2525
- `.prismalintrc.json`
26+
- `.prismalintrc`
27+
- `.prismalintrc.js`
28+
- `.prismalintrc.yaml`
29+
- `.prismalintrc.yml`
30+
- `prismalint.config.js`
2631
- User-defined config file set at `reviews.tools.prismalint.config_file` in your project's `.coderabbit.yaml` file or setting the "Review → Tools → Prisma Lint → Config File" field in CodeRabbit's settings page.
2732

2833
:::note
@@ -33,49 +38,7 @@ By default, Prisma Lint looks for schema files at `prisma/schema.prisma`. If you
3338

3439
## Rule Configuration
3540

36-
Rules can be configured in your `.prismalintrc.json` file. Here's an example configuration:
37-
38-
```json
39-
{
40-
"rules": {
41-
"field-name-mapping-snake-case": [
42-
"error",
43-
{
44-
"compoundWords": ["S3"]
45-
}
46-
],
47-
"model-name-grammatical-number": [
48-
"error",
49-
{
50-
"style": "singular"
51-
}
52-
],
53-
"require-field-index": [
54-
"error",
55-
{
56-
"forAllRelations": true,
57-
"forNames": ["tenantId"]
58-
}
59-
]
60-
}
61-
}
62-
```
63-
64-
## Ignoring Rules
65-
66-
You can ignore rules using three-slash (`///`) comments inside your Prisma models:
67-
68-
```prisma
69-
model User {
70-
/// prisma-lint-ignore-model
71-
// Ignores all lint rules for this model
72-
}
73-
74-
model Post {
75-
/// prisma-lint-ignore-model require-field
76-
// Ignores specific rules for this model
77-
}
78-
```
41+
Rules can be configured in your `.prismalintrc.json` file. See the [Prisma Lint Rules Documentation](https://github.com/loop-payments/prisma-lint/blob/main/RULES.md) for more information on the available rules and their configuration options.
7942

8043
## Links
8144

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy