eslint-plugin-vitest
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "eslint-plugin-vitest", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"license": "MIT", | ||
@@ -53,8 +53,11 @@ "description": "Eslint plugin for vitest", | ||
"build": "unbuild", | ||
"lint": "eslint 'src/**/*.ts' --fix", | ||
"test": "vitest --watch", | ||
"lint": "eslint 'src/**/*.ts'", | ||
"lint:fix": "eslint 'src/**/*.ts' --fix", | ||
"test": "vitest", | ||
"test:ci": "vitest run", | ||
"format": "prettier --write --plugin-search-dir=. .", | ||
"format:check": "prettier --check --plugin-search-dir=. .", | ||
"release": "bumpp package.json --commit --push --tag && pnpm publish" | ||
}, | ||
"readme": "## eslint-plugin-vitest\n\n![npm](https://img.shields.io/npm/v/eslint-plugin-vitest)\n\nEslint plugin for vitest\n\n### Installation\n\nYou'll first need to install [ESLint](https://eslint.org/):\n\n```sh\nnpm i eslint --save-dev\n```\n\nNext, install `eslint-plugin-vitest`:\n\n```sh\nnpm install eslint-plugin-vitest --save-dev\n```\n\n### Usage\n\nAdd `vitest` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n \"plugins\": [\"vitest\"]\n}\n```\n\nThen configure the rules you want to use under the rules section.\n\n```json\n{\n \"rules\": {\n \"vitest/no-skipped-tests\": 2\n }\n}\n```\n\n### Supported Rules\n\n- No Skipped tests \n- Lower case title\n\n\n### Licence \n\n[MIT](https://github.com/veritem/eslint-plugin-vitest/blob/main/LICENSE) Licence © 2022 - present [veritem](https://github.com/veritem)\n" | ||
"readme": "## eslint-plugin-vitest\n\n\n![npm](https://img.shields.io/npm/v/eslint-plugin-vitest)\n[![ci](https://github.com/veritem/eslint-plugin-vitest/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/veritem/eslint-plugin-vitest/actions/workflows/ci.yml)\n\n\n> Disclaimer: This package is very experimental\n\nEslint plugin for vitest\n\n### Installation\n\nYou'll first need to install [ESLint](https://eslint.org/):\n\n```sh\nnpm i eslint --save-dev\n```\n\nNext, install `eslint-plugin-vitest`:\n\n```sh\nnpm install eslint-plugin-vitest --save-dev\n```\n\n### Usage\n\nAdd `vitest` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n \"plugins\": [\"vitest\"]\n}\n```\n\nThen configure the rules you want to use under the rules section.\n\n```json\n{\n \"rules\": {\n \"vitest/no-skipped-tests\": 2\n }\n}\n```\n\n### Supported Rules\n\n- No Skipped tests \n- Lower case title\n- Max number of nested describe blocks\n```json\n{\n \"rules\": {\n \"vitest/max-nested-describe\": [\n \"error\",\n {\n \"max\": 3\n }\n ],\n }\n}\n```\n\n\n### Licence \n\n[MIT](https://github.com/veritem/eslint-plugin-vitest/blob/main/LICENSE) Licence © 2022 - present [veritem](https://github.com/veritem)\n" | ||
} |
## eslint-plugin-vitest | ||
![npm](https://img.shields.io/npm/v/eslint-plugin-vitest) | ||
[![ci](https://github.com/veritem/eslint-plugin-vitest/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/veritem/eslint-plugin-vitest/actions/workflows/ci.yml) | ||
> Disclaimer: This package is very experimental | ||
Eslint plugin for vitest | ||
@@ -45,2 +50,15 @@ | ||
- Lower case title | ||
- Max number of nested describe blocks | ||
```json | ||
{ | ||
"rules": { | ||
"vitest/max-nested-describe": [ | ||
"error", | ||
{ | ||
"max": 3 | ||
} | ||
], | ||
} | ||
} | ||
``` | ||
@@ -47,0 +65,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
68
5808
5
17
3