eslint-plugin-vitest
Advanced tools
Comparing version 0.0.18 to 0.0.19
{ | ||
"name": "eslint-plugin-vitest", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"license": "MIT", | ||
@@ -35,5 +35,7 @@ "description": "Eslint plugin for vitest", | ||
"eslint": "^8.27.0", | ||
"eslint-doc-generator": "^0.22.0", | ||
"eslint-plugin-eslint-plugin": "^5.0.6", | ||
"eslint-plugin-node": "^11.1.0", | ||
"jiti": "^1.16.0", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.7.1", | ||
@@ -53,12 +55,14 @@ "unbuild": "^0.9.4", | ||
"scripts": { | ||
"build": "unbuild", | ||
"format:check": "prettier --check --plugin-search-dir=. .", | ||
"format": "prettier --write --plugin-search-dir=. .", | ||
"lint:eslint-docs": "pnpm eslint-doc-generator --check", | ||
"lint:js": "eslint .", | ||
"lint": "npm-run-all \"lint:*\"", | ||
"release": "pnpm build && bumpp package.json --commit --push --tag && pnpm publish", | ||
"stub": "unbuild --stub", | ||
"build": "unbuild", | ||
"lint": "eslint 'src/**/*.ts'", | ||
"lint:fix": "eslint 'src/**/*.ts' --fix", | ||
"test:ci": "vitest run", | ||
"test": "vitest", | ||
"test:ci": "vitest run", | ||
"format": "prettier --write --plugin-search-dir=. .", | ||
"format:check": "prettier --check --plugin-search-dir=. .", | ||
"release": "pnpm build && bumpp package.json --commit --push --tag && pnpm publish" | ||
"update:eslint-docs": "pnpm run build && eslint-doc-generator" | ||
} | ||
} |
@@ -28,11 +28,3 @@ ## eslint-plugin-vitest | ||
{ | ||
"plugins": ["vitest"], | ||
"rules": { | ||
"vitest/max-nested-describe": [ | ||
"error", | ||
{ | ||
"max": 3 | ||
} | ||
] | ||
} | ||
"plugins": ["vitest"] | ||
} | ||
@@ -46,3 +38,8 @@ ``` | ||
"rules": { | ||
"vitest/no-skipped-tests": 2 | ||
"vitest/max-nested-describe": [ | ||
"error", | ||
{ | ||
"max": 3 | ||
} | ||
] | ||
} | ||
@@ -54,12 +51,18 @@ } | ||
| 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 | | ||
| [expect-expect](src/rules/expect-expect.ts) | Enforce assertion to be with expect | | ||
<!-- begin auto-generated rules list --> | ||
🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix). | ||
| Name | Description | 🔧 | | ||
| :--------------------------------------------------------- | :-------------------------------------- | :- | | ||
| [expect-expect](docs/rules/expect-expect.md) | Enforce having expectation in test body | 🔧 | | ||
| [lower-case-title](docs/rules/lower-case-title.md) | Enforce lowercase titles | 🔧 | | ||
| [max-nested-describe](docs/rules/max-nested-describe.md) | Disallow nested describes | 🔧 | | ||
| [no-conditional-tests](docs/rules/no-conditional-tests.md) | Disallow conditional tests | 🔧 | | ||
| [no-focused-tests](docs/rules/no-focused-tests.md) | Disallow focused tests | 🔧 | | ||
| [no-identical-title](docs/rules/no-identical-title.md) | Disallow identical titles | 🔧 | | ||
| [no-skipped-tests](docs/rules/no-skipped-tests.md) | Disallow skipped tests | 🔧 | | ||
<!-- end auto-generated rules list --> | ||
#### Credits | ||
@@ -66,0 +69,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
24554
72
14