eslint-plugin-vitest
Advanced tools
Comparing version 0.0.14 to 0.0.15
{ | ||
"name": "eslint-plugin-vitest", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Eslint plugin for vitest", |
@@ -28,3 +28,11 @@ ## eslint-plugin-vitest | ||
{ | ||
"plugins": ["vitest"] | ||
"plugins": ["vitest"], | ||
"rules": { | ||
"vitest/max-nested-describe": [ | ||
"error", | ||
{ | ||
"max": 3 | ||
} | ||
] | ||
} | ||
} | ||
@@ -43,22 +51,13 @@ ``` | ||
### Supported Rules | ||
### List of supported rules | ||
- No Skipped tests | ||
- No Focused tests | ||
- Lower case title | ||
- Max number of nested describe blocks | ||
| Name | Description | | ||
|:----------------------------------------------------------|:--------------------------------------------------| | ||
| [lower-case-title](src/rules/lower-case-title.ts) | Enforce lowercase test names | | ||
| [max-nested-describe](src/rules/max-nested-describe.ts) | Enforces a maximum depth to nested describe calls | | ||
| [no-focused-tests](src/rules/no-focused-tests.ts) | Disallow focused tests | | ||
| [no-identical-title](src/rules/no-identical-title.ts) | Disallow identical titles | | ||
| [no-skipped-tests](src/rules/no-skipped-tests.ts) | Disallow skipped tests | | ||
| [no-conditional-tests](src/rules/no-conditional-tests.ts) | Disallow conditional tests | | ||
```json | ||
{ | ||
"rules": { | ||
"vitest/max-nested-describe": [ | ||
"error", | ||
{ | ||
"max": 3 | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
#### Credits | ||
@@ -65,0 +64,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19756
68