q9
This commit is contained in:
21
node_modules/@vitest/eslint-plugin/LICENSE
generated
vendored
Normal file
21
node_modules/@vitest/eslint-plugin/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2022 Verité Mugabo Makuza
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
186
node_modules/@vitest/eslint-plugin/README.md
generated
vendored
Normal file
186
node_modules/@vitest/eslint-plugin/README.md
generated
vendored
Normal file
@@ -0,0 +1,186 @@
|
||||
## eslint-plugin-vitest
|
||||
|
||||

|
||||
[](https://github.com/veritem/eslint-plugin-vitest/actions/workflows/ci.yml)
|
||||
|
||||
Eslint plugin for vitest
|
||||
|
||||
### Installation
|
||||
|
||||
You'll first need to install [ESLint](https://eslint.org/):
|
||||
|
||||
```sh
|
||||
npm i eslint --save-dev
|
||||
```
|
||||
|
||||
Next, install `@vitest/eslint-plugin`
|
||||
|
||||
```sh
|
||||
npm install @vitest/eslint-plugin --save-dev
|
||||
```
|
||||
|
||||
### Usage
|
||||
|
||||
Make sure you're running eslint `v9.0.0` or higher for the latest version of this plugin to work. The following example is how your `eslint.config.js` should be setup for this plugin to work for you.
|
||||
|
||||
```js
|
||||
import vitest from "@vitest/eslint-plugin";
|
||||
|
||||
export default [
|
||||
{
|
||||
files: ["tests/**"], // or any other pattern
|
||||
plugins: {
|
||||
vitest
|
||||
},
|
||||
rules: {
|
||||
...vitest.configs.recommended.rules, // you can also use vitest.configs.all.rules to enable all rules
|
||||
"vitest/max-nested-describe": ["error", { "max": 3 }] // you can also modify rules' behavior using option like this
|
||||
},
|
||||
},
|
||||
];
|
||||
```
|
||||
|
||||
If you're not using the latest version of eslint (version `v8.57.0` or lower) you can setup this plugin using the following configuration
|
||||
|
||||
Add `vitest` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
|
||||
|
||||
```json
|
||||
{
|
||||
"plugins": ["@vitest"]
|
||||
}
|
||||
```
|
||||
|
||||
Then configure the rules you want to use under the rules section.
|
||||
|
||||
```json
|
||||
{
|
||||
"rules": {
|
||||
"vitest/max-nested-describe": [
|
||||
"error",
|
||||
{
|
||||
"max": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
If you're using old Eslint configuration, make sure to use legacy key like the following
|
||||
|
||||
```js
|
||||
{
|
||||
"extends": ["plugin:@vitest/legacy-recommended"] // or legacy-all
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
#### Enabling with type-testing
|
||||
|
||||
Vitest ships with an optional [type-testing feature](https://vitest.dev/guide/testing-types), which is disabled by default.
|
||||
|
||||
If you're using this feature, you should also enabled `typecheck` in the settings for this plugin. This ensures that rules like [expect-expect](docs/rules/expect-expect.md) account for type-related assertions in tests.
|
||||
|
||||
```js
|
||||
import vitest from "@vitest/eslint-plugin";
|
||||
|
||||
export default [
|
||||
{
|
||||
files: ["tests/**"], // or any other pattern
|
||||
plugins: {
|
||||
vitest,
|
||||
},
|
||||
rules: {
|
||||
...vitest.configs.recommended.rules,
|
||||
},
|
||||
settings: {
|
||||
vitest: {
|
||||
typecheck: true
|
||||
}
|
||||
},
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...vitest.environments.env.globals,
|
||||
},
|
||||
},
|
||||
},
|
||||
]
|
||||
```
|
||||
|
||||
### Rules
|
||||
|
||||
<!-- begin auto-generated rules list -->
|
||||
|
||||
💼 Configurations enabled in.\
|
||||
⚠️ Configurations set to warn in.\
|
||||
🌐 Set in the `all` configuration.\
|
||||
✅ Set in the `recommended` configuration.\
|
||||
🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).\
|
||||
💡 Manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).\
|
||||
❌ Deprecated.
|
||||
|
||||
| Name | Description | 💼 | ⚠️ | 🔧 | 💡 | ❌ |
|
||||
| :----------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------- | :- | :- | :- | :- | :- |
|
||||
| [consistent-test-filename](docs/rules/consistent-test-filename.md) | require .spec test file pattern | | 🌐 | | | |
|
||||
| [consistent-test-it](docs/rules/consistent-test-it.md) | enforce using test or it but not both | | 🌐 | 🔧 | | |
|
||||
| [expect-expect](docs/rules/expect-expect.md) | enforce having expectation in test body | ✅ | | | | |
|
||||
| [max-expects](docs/rules/max-expects.md) | enforce a maximum number of expect per test | | 🌐 | | | |
|
||||
| [max-nested-describe](docs/rules/max-nested-describe.md) | require describe block to be less than set max value or default value | | 🌐 | | | |
|
||||
| [no-alias-methods](docs/rules/no-alias-methods.md) | disallow alias methods | | 🌐 | 🔧 | | |
|
||||
| [no-commented-out-tests](docs/rules/no-commented-out-tests.md) | disallow commented out tests | ✅ | | | | |
|
||||
| [no-conditional-expect](docs/rules/no-conditional-expect.md) | disallow conditional expects | | 🌐 | | | |
|
||||
| [no-conditional-in-test](docs/rules/no-conditional-in-test.md) | disallow conditional tests | | 🌐 | | | |
|
||||
| [no-conditional-tests](docs/rules/no-conditional-tests.md) | disallow conditional tests | | 🌐 | | | |
|
||||
| [no-disabled-tests](docs/rules/no-disabled-tests.md) | disallow disabled tests | | 🌐 | | | |
|
||||
| [no-done-callback](docs/rules/no-done-callback.md) | disallow using a callback in asynchronous tests and hooks | | 🌐 | | 💡 | ❌ |
|
||||
| [no-duplicate-hooks](docs/rules/no-duplicate-hooks.md) | disallow duplicate hooks and teardown hooks | | 🌐 | | | |
|
||||
| [no-focused-tests](docs/rules/no-focused-tests.md) | disallow focused tests | | 🌐 | 🔧 | | |
|
||||
| [no-hooks](docs/rules/no-hooks.md) | disallow setup and teardown hooks | | 🌐 | | | |
|
||||
| [no-identical-title](docs/rules/no-identical-title.md) | disallow identical titles | ✅ | | 🔧 | | |
|
||||
| [no-import-node-test](docs/rules/no-import-node-test.md) | disallow importing `node:test` | ✅ | | 🔧 | | |
|
||||
| [no-interpolation-in-snapshots](docs/rules/no-interpolation-in-snapshots.md) | disallow string interpolation in snapshots | | 🌐 | 🔧 | | |
|
||||
| [no-large-snapshots](docs/rules/no-large-snapshots.md) | disallow large snapshots | | 🌐 | | | |
|
||||
| [no-mocks-import](docs/rules/no-mocks-import.md) | disallow importing from __mocks__ directory | | 🌐 | | | |
|
||||
| [no-restricted-matchers](docs/rules/no-restricted-matchers.md) | disallow the use of certain matchers | | 🌐 | | | |
|
||||
| [no-restricted-vi-methods](docs/rules/no-restricted-vi-methods.md) | disallow specific `vi.` methods | | 🌐 | | | |
|
||||
| [no-standalone-expect](docs/rules/no-standalone-expect.md) | disallow using `expect` outside of `it` or `test` blocks | | 🌐 | | | |
|
||||
| [no-test-prefixes](docs/rules/no-test-prefixes.md) | disallow using `test` as a prefix | | 🌐 | 🔧 | | |
|
||||
| [no-test-return-statement](docs/rules/no-test-return-statement.md) | disallow return statements in tests | | 🌐 | | | |
|
||||
| [prefer-called-with](docs/rules/prefer-called-with.md) | enforce using `toBeCalledWith()` or `toHaveBeenCalledWith()` | | 🌐 | 🔧 | | |
|
||||
| [prefer-comparison-matcher](docs/rules/prefer-comparison-matcher.md) | enforce using the built-in comparison matchers | | 🌐 | 🔧 | | |
|
||||
| [prefer-each](docs/rules/prefer-each.md) | enforce using `each` rather than manual loops | | 🌐 | | | |
|
||||
| [prefer-equality-matcher](docs/rules/prefer-equality-matcher.md) | enforce using the built-in quality matchers | | 🌐 | | 💡 | |
|
||||
| [prefer-expect-assertions](docs/rules/prefer-expect-assertions.md) | enforce using expect assertions instead of callbacks | | 🌐 | | 💡 | |
|
||||
| [prefer-expect-resolves](docs/rules/prefer-expect-resolves.md) | enforce using `expect().resolves` over `expect(await ...)` syntax | | 🌐 | 🔧 | | |
|
||||
| [prefer-hooks-in-order](docs/rules/prefer-hooks-in-order.md) | enforce having hooks in consistent order | | 🌐 | | | |
|
||||
| [prefer-hooks-on-top](docs/rules/prefer-hooks-on-top.md) | enforce having hooks before any test cases | | 🌐 | | | |
|
||||
| [prefer-lowercase-title](docs/rules/prefer-lowercase-title.md) | enforce lowercase titles | | 🌐 | 🔧 | | |
|
||||
| [prefer-mock-promise-shorthand](docs/rules/prefer-mock-promise-shorthand.md) | enforce mock resolved/rejected shorthands for promises | | 🌐 | 🔧 | | |
|
||||
| [prefer-snapshot-hint](docs/rules/prefer-snapshot-hint.md) | enforce including a hint with external snapshots | | 🌐 | | | |
|
||||
| [prefer-spy-on](docs/rules/prefer-spy-on.md) | enforce using `vi.spyOn` | | 🌐 | 🔧 | | |
|
||||
| [prefer-strict-equal](docs/rules/prefer-strict-equal.md) | enforce strict equal over equal | | 🌐 | | 💡 | |
|
||||
| [prefer-to-be](docs/rules/prefer-to-be.md) | enforce using toBe() | | 🌐 | 🔧 | | |
|
||||
| [prefer-to-be-falsy](docs/rules/prefer-to-be-falsy.md) | enforce using toBeFalsy() | | 🌐 | 🔧 | | |
|
||||
| [prefer-to-be-object](docs/rules/prefer-to-be-object.md) | enforce using toBeObject() | | 🌐 | 🔧 | | |
|
||||
| [prefer-to-be-truthy](docs/rules/prefer-to-be-truthy.md) | enforce using `toBeTruthy` | | 🌐 | 🔧 | | |
|
||||
| [prefer-to-contain](docs/rules/prefer-to-contain.md) | enforce using toContain() | | 🌐 | 🔧 | | |
|
||||
| [prefer-to-have-length](docs/rules/prefer-to-have-length.md) | enforce using toHaveLength() | | 🌐 | 🔧 | | |
|
||||
| [prefer-todo](docs/rules/prefer-todo.md) | enforce using `test.todo` | | 🌐 | 🔧 | | |
|
||||
| [prefer-vi-mocked](docs/rules/prefer-vi-mocked.md) | Prefer `vi.mocked()` over `fn as Mock` | | 🌐 | 🔧 | | |
|
||||
| [require-hook](docs/rules/require-hook.md) | require setup and teardown to be within a hook | | 🌐 | | | |
|
||||
| [require-local-test-context-for-concurrent-snapshots](docs/rules/require-local-test-context-for-concurrent-snapshots.md) | require local Test Context for concurrent snapshot tests | ✅ | | | | |
|
||||
| [require-to-throw-message](docs/rules/require-to-throw-message.md) | require toThrow() to be called with an error message | | 🌐 | | | |
|
||||
| [require-top-level-describe](docs/rules/require-top-level-describe.md) | enforce that all tests are in a top-level describe | | 🌐 | | | |
|
||||
| [valid-describe-callback](docs/rules/valid-describe-callback.md) | enforce valid describe callback | ✅ | | | | |
|
||||
| [valid-expect](docs/rules/valid-expect.md) | enforce valid `expect()` usage | ✅ | | | | |
|
||||
| [valid-title](docs/rules/valid-title.md) | enforce valid titles | ✅ | | 🔧 | | |
|
||||
|
||||
<!-- end auto-generated rules list -->
|
||||
|
||||
#### Credits
|
||||
|
||||
- [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest)
|
||||
Most of the rules in this plugin are essentially ports of Jest plugin rules with minor modifications
|
||||
|
||||
### Licence
|
||||
|
||||
[MIT](https://github.com/veritem/eslint-plugin-vitest/blob/main/LICENSE) Licence © 2022 - present [veritem](https://github.com/veritem) and contributors
|
||||
4678
node_modules/@vitest/eslint-plugin/dist/index.cjs
generated
vendored
Normal file
4678
node_modules/@vitest/eslint-plugin/dist/index.cjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
195
node_modules/@vitest/eslint-plugin/dist/index.d.cts
generated
vendored
Normal file
195
node_modules/@vitest/eslint-plugin/dist/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,195 @@
|
||||
import * as eslint from 'eslint';
|
||||
import { ESLint } from 'eslint';
|
||||
|
||||
declare const plugin: {
|
||||
meta: {
|
||||
name: string;
|
||||
version: string;
|
||||
};
|
||||
rules: {
|
||||
"prefer-lowercase-title": eslint.Rule.RuleModule;
|
||||
"max-nested-describe": eslint.Rule.RuleModule;
|
||||
"no-identical-title": eslint.Rule.RuleModule;
|
||||
"no-focused-tests": eslint.Rule.RuleModule;
|
||||
"no-conditional-tests": eslint.Rule.RuleModule;
|
||||
"expect-expect": eslint.Rule.RuleModule;
|
||||
"consistent-test-it": eslint.Rule.RuleModule;
|
||||
"prefer-to-be": eslint.Rule.RuleModule;
|
||||
"no-hooks": eslint.Rule.RuleModule;
|
||||
"no-restricted-vi-methods": eslint.Rule.RuleModule;
|
||||
"consistent-test-filename": eslint.Rule.RuleModule;
|
||||
"max-expects": eslint.Rule.RuleModule;
|
||||
"no-alias-methods": eslint.Rule.RuleModule;
|
||||
"no-commented-out-tests": eslint.Rule.RuleModule;
|
||||
"no-conditional-expect": eslint.Rule.RuleModule;
|
||||
"no-conditional-in-test": eslint.Rule.RuleModule;
|
||||
"no-disabled-tests": eslint.Rule.RuleModule;
|
||||
"no-done-callback": eslint.Rule.RuleModule;
|
||||
"no-duplicate-hooks": eslint.Rule.RuleModule;
|
||||
"no-large-snapshots": eslint.Rule.RuleModule;
|
||||
"no-interpolation-in-snapshots": eslint.Rule.RuleModule;
|
||||
"no-mocks-import": eslint.Rule.RuleModule;
|
||||
"no-restricted-matchers": eslint.Rule.RuleModule;
|
||||
"no-standalone-expect": eslint.Rule.RuleModule;
|
||||
"no-test-prefixes": eslint.Rule.RuleModule;
|
||||
"no-test-return-statement": eslint.Rule.RuleModule;
|
||||
"no-import-node-test": eslint.Rule.RuleModule;
|
||||
"prefer-called-with": eslint.Rule.RuleModule;
|
||||
"valid-title": eslint.Rule.RuleModule;
|
||||
"valid-expect": eslint.Rule.RuleModule;
|
||||
"prefer-to-be-falsy": eslint.Rule.RuleModule;
|
||||
"prefer-to-be-object": eslint.Rule.RuleModule;
|
||||
"prefer-to-be-truthy": eslint.Rule.RuleModule;
|
||||
"prefer-to-have-length": eslint.Rule.RuleModule;
|
||||
"prefer-equality-matcher": eslint.Rule.RuleModule;
|
||||
"prefer-strict-equal": eslint.Rule.RuleModule;
|
||||
"prefer-expect-resolves": eslint.Rule.RuleModule;
|
||||
"prefer-each": eslint.Rule.RuleModule;
|
||||
"prefer-hooks-on-top": eslint.Rule.RuleModule;
|
||||
"prefer-hooks-in-order": eslint.Rule.RuleModule;
|
||||
"require-local-test-context-for-concurrent-snapshots": eslint.Rule.RuleModule;
|
||||
"prefer-mock-promise-shorthand": eslint.Rule.RuleModule;
|
||||
"prefer-vi-mocked": eslint.Rule.RuleModule;
|
||||
"prefer-snapshot-hint": eslint.Rule.RuleModule;
|
||||
"valid-describe-callback": eslint.Rule.RuleModule;
|
||||
"require-top-level-describe": eslint.Rule.RuleModule;
|
||||
"require-to-throw-message": eslint.Rule.RuleModule;
|
||||
"require-hook": eslint.Rule.RuleModule;
|
||||
"prefer-todo": eslint.Rule.RuleModule;
|
||||
"prefer-spy-on": eslint.Rule.RuleModule;
|
||||
"prefer-comparison-matcher": eslint.Rule.RuleModule;
|
||||
"prefer-to-contain": eslint.Rule.RuleModule;
|
||||
"prefer-expect-assertions": eslint.Rule.RuleModule;
|
||||
"padding-around-after-all-blocks": eslint.Rule.RuleModule;
|
||||
"padding-around-after-each-blocks": eslint.Rule.RuleModule;
|
||||
"padding-around-all": eslint.Rule.RuleModule;
|
||||
"padding-around-before-all-blocks": eslint.Rule.RuleModule;
|
||||
"padding-around-before-each-blocks": eslint.Rule.RuleModule;
|
||||
"padding-around-describe-blocks": eslint.Rule.RuleModule;
|
||||
"padding-around-expect-groups": eslint.Rule.RuleModule;
|
||||
"padding-around-test-blocks": eslint.Rule.RuleModule;
|
||||
};
|
||||
configs: {
|
||||
'legacy-recommended': {
|
||||
plugins: string[];
|
||||
rules: {};
|
||||
};
|
||||
'legacy-all': {
|
||||
plugins: string[];
|
||||
rules: {};
|
||||
};
|
||||
recommended: {
|
||||
plugins: {
|
||||
readonly vitest: ESLint.Plugin;
|
||||
};
|
||||
rules: {
|
||||
readonly "vitest/expect-expect": "error";
|
||||
readonly "vitest/no-identical-title": "error";
|
||||
readonly "vitest/no-commented-out-tests": "error";
|
||||
readonly "vitest/valid-title": "error";
|
||||
readonly "vitest/valid-expect": "error";
|
||||
readonly "vitest/valid-describe-callback": "error";
|
||||
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
||||
readonly "vitest/no-import-node-test": "error";
|
||||
};
|
||||
};
|
||||
all: {
|
||||
plugins: {
|
||||
readonly vitest: ESLint.Plugin;
|
||||
};
|
||||
rules: {
|
||||
readonly "vitest/prefer-lowercase-title": "warn";
|
||||
readonly "vitest/max-nested-describe": "warn";
|
||||
readonly "vitest/no-focused-tests": "warn";
|
||||
readonly "vitest/no-conditional-tests": "warn";
|
||||
readonly "vitest/consistent-test-it": "warn";
|
||||
readonly "vitest/no-hooks": "warn";
|
||||
readonly "vitest/no-restricted-vi-methods": "warn";
|
||||
readonly "vitest/consistent-test-filename": "warn";
|
||||
readonly "vitest/max-expects": "warn";
|
||||
readonly "vitest/no-alias-methods": "warn";
|
||||
readonly "vitest/no-conditional-expect": "warn";
|
||||
readonly "vitest/no-conditional-in-test": "warn";
|
||||
readonly "vitest/no-disabled-tests": "warn";
|
||||
readonly "vitest/no-done-callback": "warn";
|
||||
readonly "vitest/no-duplicate-hooks": "warn";
|
||||
readonly "vitest/no-large-snapshots": "warn";
|
||||
readonly "vitest/no-interpolation-in-snapshots": "warn";
|
||||
readonly "vitest/no-mocks-import": "warn";
|
||||
readonly "vitest/no-restricted-matchers": "warn";
|
||||
readonly "vitest/no-standalone-expect": "warn";
|
||||
readonly "vitest/no-test-prefixes": "warn";
|
||||
readonly "vitest/no-test-return-statement": "warn";
|
||||
readonly "vitest/prefer-called-with": "warn";
|
||||
readonly "vitest/prefer-to-be-falsy": "warn";
|
||||
readonly "vitest/prefer-to-be-object": "warn";
|
||||
readonly "vitest/prefer-to-be-truthy": "warn";
|
||||
readonly "vitest/prefer-to-have-length": "warn";
|
||||
readonly "vitest/prefer-equality-matcher": "warn";
|
||||
readonly "vitest/prefer-strict-equal": "warn";
|
||||
readonly "vitest/prefer-expect-resolves": "warn";
|
||||
readonly "vitest/prefer-each": "warn";
|
||||
readonly "vitest/prefer-hooks-on-top": "warn";
|
||||
readonly "vitest/prefer-hooks-in-order": "warn";
|
||||
readonly "vitest/prefer-mock-promise-shorthand": "warn";
|
||||
readonly "vitest/prefer-vi-mocked": "warn";
|
||||
readonly "vitest/prefer-snapshot-hint": "warn";
|
||||
readonly "vitest/require-top-level-describe": "warn";
|
||||
readonly "vitest/require-to-throw-message": "warn";
|
||||
readonly "vitest/require-hook": "warn";
|
||||
readonly "vitest/prefer-todo": "warn";
|
||||
readonly "vitest/prefer-spy-on": "warn";
|
||||
readonly "vitest/prefer-comparison-matcher": "warn";
|
||||
readonly "vitest/prefer-to-contain": "warn";
|
||||
readonly "vitest/prefer-expect-assertions": "warn";
|
||||
readonly "vitest/prefer-to-be": "warn";
|
||||
readonly "vitest/padding-around-after-all-blocks": "warn";
|
||||
readonly "vitest/padding-around-after-each-blocks": "warn";
|
||||
readonly "vitest/padding-around-all": "warn";
|
||||
readonly "vitest/padding-around-before-all-blocks": "warn";
|
||||
readonly "vitest/padding-around-before-each-blocks": "warn";
|
||||
readonly "vitest/padding-around-describe-blocks": "warn";
|
||||
readonly "vitest/padding-around-expect-groups": "warn";
|
||||
readonly "vitest/padding-around-test-blocks": "warn";
|
||||
};
|
||||
};
|
||||
env: {
|
||||
languageOptions: {
|
||||
globals: {
|
||||
suite: "writable";
|
||||
test: "writable";
|
||||
describe: "writable";
|
||||
it: "writable";
|
||||
expect: "writable";
|
||||
assert: "writable";
|
||||
vitest: "writable";
|
||||
vi: "writable";
|
||||
beforeAll: "writable";
|
||||
afterAll: "writable";
|
||||
beforeEach: "writable";
|
||||
afterEach: "writable";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
environments: {
|
||||
env: {
|
||||
globals: {
|
||||
suite: true;
|
||||
test: true;
|
||||
describe: true;
|
||||
it: true;
|
||||
expect: true;
|
||||
assert: true;
|
||||
vitest: true;
|
||||
vi: true;
|
||||
beforeAll: true;
|
||||
afterAll: true;
|
||||
beforeEach: true;
|
||||
afterEach: true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
export { plugin as default };
|
||||
195
node_modules/@vitest/eslint-plugin/dist/index.d.mts
generated
vendored
Normal file
195
node_modules/@vitest/eslint-plugin/dist/index.d.mts
generated
vendored
Normal file
@@ -0,0 +1,195 @@
|
||||
import * as eslint from 'eslint';
|
||||
import { ESLint } from 'eslint';
|
||||
|
||||
declare const plugin: {
|
||||
meta: {
|
||||
name: string;
|
||||
version: string;
|
||||
};
|
||||
rules: {
|
||||
"prefer-lowercase-title": eslint.Rule.RuleModule;
|
||||
"max-nested-describe": eslint.Rule.RuleModule;
|
||||
"no-identical-title": eslint.Rule.RuleModule;
|
||||
"no-focused-tests": eslint.Rule.RuleModule;
|
||||
"no-conditional-tests": eslint.Rule.RuleModule;
|
||||
"expect-expect": eslint.Rule.RuleModule;
|
||||
"consistent-test-it": eslint.Rule.RuleModule;
|
||||
"prefer-to-be": eslint.Rule.RuleModule;
|
||||
"no-hooks": eslint.Rule.RuleModule;
|
||||
"no-restricted-vi-methods": eslint.Rule.RuleModule;
|
||||
"consistent-test-filename": eslint.Rule.RuleModule;
|
||||
"max-expects": eslint.Rule.RuleModule;
|
||||
"no-alias-methods": eslint.Rule.RuleModule;
|
||||
"no-commented-out-tests": eslint.Rule.RuleModule;
|
||||
"no-conditional-expect": eslint.Rule.RuleModule;
|
||||
"no-conditional-in-test": eslint.Rule.RuleModule;
|
||||
"no-disabled-tests": eslint.Rule.RuleModule;
|
||||
"no-done-callback": eslint.Rule.RuleModule;
|
||||
"no-duplicate-hooks": eslint.Rule.RuleModule;
|
||||
"no-large-snapshots": eslint.Rule.RuleModule;
|
||||
"no-interpolation-in-snapshots": eslint.Rule.RuleModule;
|
||||
"no-mocks-import": eslint.Rule.RuleModule;
|
||||
"no-restricted-matchers": eslint.Rule.RuleModule;
|
||||
"no-standalone-expect": eslint.Rule.RuleModule;
|
||||
"no-test-prefixes": eslint.Rule.RuleModule;
|
||||
"no-test-return-statement": eslint.Rule.RuleModule;
|
||||
"no-import-node-test": eslint.Rule.RuleModule;
|
||||
"prefer-called-with": eslint.Rule.RuleModule;
|
||||
"valid-title": eslint.Rule.RuleModule;
|
||||
"valid-expect": eslint.Rule.RuleModule;
|
||||
"prefer-to-be-falsy": eslint.Rule.RuleModule;
|
||||
"prefer-to-be-object": eslint.Rule.RuleModule;
|
||||
"prefer-to-be-truthy": eslint.Rule.RuleModule;
|
||||
"prefer-to-have-length": eslint.Rule.RuleModule;
|
||||
"prefer-equality-matcher": eslint.Rule.RuleModule;
|
||||
"prefer-strict-equal": eslint.Rule.RuleModule;
|
||||
"prefer-expect-resolves": eslint.Rule.RuleModule;
|
||||
"prefer-each": eslint.Rule.RuleModule;
|
||||
"prefer-hooks-on-top": eslint.Rule.RuleModule;
|
||||
"prefer-hooks-in-order": eslint.Rule.RuleModule;
|
||||
"require-local-test-context-for-concurrent-snapshots": eslint.Rule.RuleModule;
|
||||
"prefer-mock-promise-shorthand": eslint.Rule.RuleModule;
|
||||
"prefer-vi-mocked": eslint.Rule.RuleModule;
|
||||
"prefer-snapshot-hint": eslint.Rule.RuleModule;
|
||||
"valid-describe-callback": eslint.Rule.RuleModule;
|
||||
"require-top-level-describe": eslint.Rule.RuleModule;
|
||||
"require-to-throw-message": eslint.Rule.RuleModule;
|
||||
"require-hook": eslint.Rule.RuleModule;
|
||||
"prefer-todo": eslint.Rule.RuleModule;
|
||||
"prefer-spy-on": eslint.Rule.RuleModule;
|
||||
"prefer-comparison-matcher": eslint.Rule.RuleModule;
|
||||
"prefer-to-contain": eslint.Rule.RuleModule;
|
||||
"prefer-expect-assertions": eslint.Rule.RuleModule;
|
||||
"padding-around-after-all-blocks": eslint.Rule.RuleModule;
|
||||
"padding-around-after-each-blocks": eslint.Rule.RuleModule;
|
||||
"padding-around-all": eslint.Rule.RuleModule;
|
||||
"padding-around-before-all-blocks": eslint.Rule.RuleModule;
|
||||
"padding-around-before-each-blocks": eslint.Rule.RuleModule;
|
||||
"padding-around-describe-blocks": eslint.Rule.RuleModule;
|
||||
"padding-around-expect-groups": eslint.Rule.RuleModule;
|
||||
"padding-around-test-blocks": eslint.Rule.RuleModule;
|
||||
};
|
||||
configs: {
|
||||
'legacy-recommended': {
|
||||
plugins: string[];
|
||||
rules: {};
|
||||
};
|
||||
'legacy-all': {
|
||||
plugins: string[];
|
||||
rules: {};
|
||||
};
|
||||
recommended: {
|
||||
plugins: {
|
||||
readonly vitest: ESLint.Plugin;
|
||||
};
|
||||
rules: {
|
||||
readonly "vitest/expect-expect": "error";
|
||||
readonly "vitest/no-identical-title": "error";
|
||||
readonly "vitest/no-commented-out-tests": "error";
|
||||
readonly "vitest/valid-title": "error";
|
||||
readonly "vitest/valid-expect": "error";
|
||||
readonly "vitest/valid-describe-callback": "error";
|
||||
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
||||
readonly "vitest/no-import-node-test": "error";
|
||||
};
|
||||
};
|
||||
all: {
|
||||
plugins: {
|
||||
readonly vitest: ESLint.Plugin;
|
||||
};
|
||||
rules: {
|
||||
readonly "vitest/prefer-lowercase-title": "warn";
|
||||
readonly "vitest/max-nested-describe": "warn";
|
||||
readonly "vitest/no-focused-tests": "warn";
|
||||
readonly "vitest/no-conditional-tests": "warn";
|
||||
readonly "vitest/consistent-test-it": "warn";
|
||||
readonly "vitest/no-hooks": "warn";
|
||||
readonly "vitest/no-restricted-vi-methods": "warn";
|
||||
readonly "vitest/consistent-test-filename": "warn";
|
||||
readonly "vitest/max-expects": "warn";
|
||||
readonly "vitest/no-alias-methods": "warn";
|
||||
readonly "vitest/no-conditional-expect": "warn";
|
||||
readonly "vitest/no-conditional-in-test": "warn";
|
||||
readonly "vitest/no-disabled-tests": "warn";
|
||||
readonly "vitest/no-done-callback": "warn";
|
||||
readonly "vitest/no-duplicate-hooks": "warn";
|
||||
readonly "vitest/no-large-snapshots": "warn";
|
||||
readonly "vitest/no-interpolation-in-snapshots": "warn";
|
||||
readonly "vitest/no-mocks-import": "warn";
|
||||
readonly "vitest/no-restricted-matchers": "warn";
|
||||
readonly "vitest/no-standalone-expect": "warn";
|
||||
readonly "vitest/no-test-prefixes": "warn";
|
||||
readonly "vitest/no-test-return-statement": "warn";
|
||||
readonly "vitest/prefer-called-with": "warn";
|
||||
readonly "vitest/prefer-to-be-falsy": "warn";
|
||||
readonly "vitest/prefer-to-be-object": "warn";
|
||||
readonly "vitest/prefer-to-be-truthy": "warn";
|
||||
readonly "vitest/prefer-to-have-length": "warn";
|
||||
readonly "vitest/prefer-equality-matcher": "warn";
|
||||
readonly "vitest/prefer-strict-equal": "warn";
|
||||
readonly "vitest/prefer-expect-resolves": "warn";
|
||||
readonly "vitest/prefer-each": "warn";
|
||||
readonly "vitest/prefer-hooks-on-top": "warn";
|
||||
readonly "vitest/prefer-hooks-in-order": "warn";
|
||||
readonly "vitest/prefer-mock-promise-shorthand": "warn";
|
||||
readonly "vitest/prefer-vi-mocked": "warn";
|
||||
readonly "vitest/prefer-snapshot-hint": "warn";
|
||||
readonly "vitest/require-top-level-describe": "warn";
|
||||
readonly "vitest/require-to-throw-message": "warn";
|
||||
readonly "vitest/require-hook": "warn";
|
||||
readonly "vitest/prefer-todo": "warn";
|
||||
readonly "vitest/prefer-spy-on": "warn";
|
||||
readonly "vitest/prefer-comparison-matcher": "warn";
|
||||
readonly "vitest/prefer-to-contain": "warn";
|
||||
readonly "vitest/prefer-expect-assertions": "warn";
|
||||
readonly "vitest/prefer-to-be": "warn";
|
||||
readonly "vitest/padding-around-after-all-blocks": "warn";
|
||||
readonly "vitest/padding-around-after-each-blocks": "warn";
|
||||
readonly "vitest/padding-around-all": "warn";
|
||||
readonly "vitest/padding-around-before-all-blocks": "warn";
|
||||
readonly "vitest/padding-around-before-each-blocks": "warn";
|
||||
readonly "vitest/padding-around-describe-blocks": "warn";
|
||||
readonly "vitest/padding-around-expect-groups": "warn";
|
||||
readonly "vitest/padding-around-test-blocks": "warn";
|
||||
};
|
||||
};
|
||||
env: {
|
||||
languageOptions: {
|
||||
globals: {
|
||||
suite: "writable";
|
||||
test: "writable";
|
||||
describe: "writable";
|
||||
it: "writable";
|
||||
expect: "writable";
|
||||
assert: "writable";
|
||||
vitest: "writable";
|
||||
vi: "writable";
|
||||
beforeAll: "writable";
|
||||
afterAll: "writable";
|
||||
beforeEach: "writable";
|
||||
afterEach: "writable";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
environments: {
|
||||
env: {
|
||||
globals: {
|
||||
suite: true;
|
||||
test: true;
|
||||
describe: true;
|
||||
it: true;
|
||||
expect: true;
|
||||
assert: true;
|
||||
vitest: true;
|
||||
vi: true;
|
||||
beforeAll: true;
|
||||
afterAll: true;
|
||||
beforeEach: true;
|
||||
afterEach: true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
export { plugin as default };
|
||||
195
node_modules/@vitest/eslint-plugin/dist/index.d.ts
generated
vendored
Normal file
195
node_modules/@vitest/eslint-plugin/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,195 @@
|
||||
import * as eslint from 'eslint';
|
||||
import { ESLint } from 'eslint';
|
||||
|
||||
declare const plugin: {
|
||||
meta: {
|
||||
name: string;
|
||||
version: string;
|
||||
};
|
||||
rules: {
|
||||
"prefer-lowercase-title": eslint.Rule.RuleModule;
|
||||
"max-nested-describe": eslint.Rule.RuleModule;
|
||||
"no-identical-title": eslint.Rule.RuleModule;
|
||||
"no-focused-tests": eslint.Rule.RuleModule;
|
||||
"no-conditional-tests": eslint.Rule.RuleModule;
|
||||
"expect-expect": eslint.Rule.RuleModule;
|
||||
"consistent-test-it": eslint.Rule.RuleModule;
|
||||
"prefer-to-be": eslint.Rule.RuleModule;
|
||||
"no-hooks": eslint.Rule.RuleModule;
|
||||
"no-restricted-vi-methods": eslint.Rule.RuleModule;
|
||||
"consistent-test-filename": eslint.Rule.RuleModule;
|
||||
"max-expects": eslint.Rule.RuleModule;
|
||||
"no-alias-methods": eslint.Rule.RuleModule;
|
||||
"no-commented-out-tests": eslint.Rule.RuleModule;
|
||||
"no-conditional-expect": eslint.Rule.RuleModule;
|
||||
"no-conditional-in-test": eslint.Rule.RuleModule;
|
||||
"no-disabled-tests": eslint.Rule.RuleModule;
|
||||
"no-done-callback": eslint.Rule.RuleModule;
|
||||
"no-duplicate-hooks": eslint.Rule.RuleModule;
|
||||
"no-large-snapshots": eslint.Rule.RuleModule;
|
||||
"no-interpolation-in-snapshots": eslint.Rule.RuleModule;
|
||||
"no-mocks-import": eslint.Rule.RuleModule;
|
||||
"no-restricted-matchers": eslint.Rule.RuleModule;
|
||||
"no-standalone-expect": eslint.Rule.RuleModule;
|
||||
"no-test-prefixes": eslint.Rule.RuleModule;
|
||||
"no-test-return-statement": eslint.Rule.RuleModule;
|
||||
"no-import-node-test": eslint.Rule.RuleModule;
|
||||
"prefer-called-with": eslint.Rule.RuleModule;
|
||||
"valid-title": eslint.Rule.RuleModule;
|
||||
"valid-expect": eslint.Rule.RuleModule;
|
||||
"prefer-to-be-falsy": eslint.Rule.RuleModule;
|
||||
"prefer-to-be-object": eslint.Rule.RuleModule;
|
||||
"prefer-to-be-truthy": eslint.Rule.RuleModule;
|
||||
"prefer-to-have-length": eslint.Rule.RuleModule;
|
||||
"prefer-equality-matcher": eslint.Rule.RuleModule;
|
||||
"prefer-strict-equal": eslint.Rule.RuleModule;
|
||||
"prefer-expect-resolves": eslint.Rule.RuleModule;
|
||||
"prefer-each": eslint.Rule.RuleModule;
|
||||
"prefer-hooks-on-top": eslint.Rule.RuleModule;
|
||||
"prefer-hooks-in-order": eslint.Rule.RuleModule;
|
||||
"require-local-test-context-for-concurrent-snapshots": eslint.Rule.RuleModule;
|
||||
"prefer-mock-promise-shorthand": eslint.Rule.RuleModule;
|
||||
"prefer-vi-mocked": eslint.Rule.RuleModule;
|
||||
"prefer-snapshot-hint": eslint.Rule.RuleModule;
|
||||
"valid-describe-callback": eslint.Rule.RuleModule;
|
||||
"require-top-level-describe": eslint.Rule.RuleModule;
|
||||
"require-to-throw-message": eslint.Rule.RuleModule;
|
||||
"require-hook": eslint.Rule.RuleModule;
|
||||
"prefer-todo": eslint.Rule.RuleModule;
|
||||
"prefer-spy-on": eslint.Rule.RuleModule;
|
||||
"prefer-comparison-matcher": eslint.Rule.RuleModule;
|
||||
"prefer-to-contain": eslint.Rule.RuleModule;
|
||||
"prefer-expect-assertions": eslint.Rule.RuleModule;
|
||||
"padding-around-after-all-blocks": eslint.Rule.RuleModule;
|
||||
"padding-around-after-each-blocks": eslint.Rule.RuleModule;
|
||||
"padding-around-all": eslint.Rule.RuleModule;
|
||||
"padding-around-before-all-blocks": eslint.Rule.RuleModule;
|
||||
"padding-around-before-each-blocks": eslint.Rule.RuleModule;
|
||||
"padding-around-describe-blocks": eslint.Rule.RuleModule;
|
||||
"padding-around-expect-groups": eslint.Rule.RuleModule;
|
||||
"padding-around-test-blocks": eslint.Rule.RuleModule;
|
||||
};
|
||||
configs: {
|
||||
'legacy-recommended': {
|
||||
plugins: string[];
|
||||
rules: {};
|
||||
};
|
||||
'legacy-all': {
|
||||
plugins: string[];
|
||||
rules: {};
|
||||
};
|
||||
recommended: {
|
||||
plugins: {
|
||||
readonly vitest: ESLint.Plugin;
|
||||
};
|
||||
rules: {
|
||||
readonly "vitest/expect-expect": "error";
|
||||
readonly "vitest/no-identical-title": "error";
|
||||
readonly "vitest/no-commented-out-tests": "error";
|
||||
readonly "vitest/valid-title": "error";
|
||||
readonly "vitest/valid-expect": "error";
|
||||
readonly "vitest/valid-describe-callback": "error";
|
||||
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
||||
readonly "vitest/no-import-node-test": "error";
|
||||
};
|
||||
};
|
||||
all: {
|
||||
plugins: {
|
||||
readonly vitest: ESLint.Plugin;
|
||||
};
|
||||
rules: {
|
||||
readonly "vitest/prefer-lowercase-title": "warn";
|
||||
readonly "vitest/max-nested-describe": "warn";
|
||||
readonly "vitest/no-focused-tests": "warn";
|
||||
readonly "vitest/no-conditional-tests": "warn";
|
||||
readonly "vitest/consistent-test-it": "warn";
|
||||
readonly "vitest/no-hooks": "warn";
|
||||
readonly "vitest/no-restricted-vi-methods": "warn";
|
||||
readonly "vitest/consistent-test-filename": "warn";
|
||||
readonly "vitest/max-expects": "warn";
|
||||
readonly "vitest/no-alias-methods": "warn";
|
||||
readonly "vitest/no-conditional-expect": "warn";
|
||||
readonly "vitest/no-conditional-in-test": "warn";
|
||||
readonly "vitest/no-disabled-tests": "warn";
|
||||
readonly "vitest/no-done-callback": "warn";
|
||||
readonly "vitest/no-duplicate-hooks": "warn";
|
||||
readonly "vitest/no-large-snapshots": "warn";
|
||||
readonly "vitest/no-interpolation-in-snapshots": "warn";
|
||||
readonly "vitest/no-mocks-import": "warn";
|
||||
readonly "vitest/no-restricted-matchers": "warn";
|
||||
readonly "vitest/no-standalone-expect": "warn";
|
||||
readonly "vitest/no-test-prefixes": "warn";
|
||||
readonly "vitest/no-test-return-statement": "warn";
|
||||
readonly "vitest/prefer-called-with": "warn";
|
||||
readonly "vitest/prefer-to-be-falsy": "warn";
|
||||
readonly "vitest/prefer-to-be-object": "warn";
|
||||
readonly "vitest/prefer-to-be-truthy": "warn";
|
||||
readonly "vitest/prefer-to-have-length": "warn";
|
||||
readonly "vitest/prefer-equality-matcher": "warn";
|
||||
readonly "vitest/prefer-strict-equal": "warn";
|
||||
readonly "vitest/prefer-expect-resolves": "warn";
|
||||
readonly "vitest/prefer-each": "warn";
|
||||
readonly "vitest/prefer-hooks-on-top": "warn";
|
||||
readonly "vitest/prefer-hooks-in-order": "warn";
|
||||
readonly "vitest/prefer-mock-promise-shorthand": "warn";
|
||||
readonly "vitest/prefer-vi-mocked": "warn";
|
||||
readonly "vitest/prefer-snapshot-hint": "warn";
|
||||
readonly "vitest/require-top-level-describe": "warn";
|
||||
readonly "vitest/require-to-throw-message": "warn";
|
||||
readonly "vitest/require-hook": "warn";
|
||||
readonly "vitest/prefer-todo": "warn";
|
||||
readonly "vitest/prefer-spy-on": "warn";
|
||||
readonly "vitest/prefer-comparison-matcher": "warn";
|
||||
readonly "vitest/prefer-to-contain": "warn";
|
||||
readonly "vitest/prefer-expect-assertions": "warn";
|
||||
readonly "vitest/prefer-to-be": "warn";
|
||||
readonly "vitest/padding-around-after-all-blocks": "warn";
|
||||
readonly "vitest/padding-around-after-each-blocks": "warn";
|
||||
readonly "vitest/padding-around-all": "warn";
|
||||
readonly "vitest/padding-around-before-all-blocks": "warn";
|
||||
readonly "vitest/padding-around-before-each-blocks": "warn";
|
||||
readonly "vitest/padding-around-describe-blocks": "warn";
|
||||
readonly "vitest/padding-around-expect-groups": "warn";
|
||||
readonly "vitest/padding-around-test-blocks": "warn";
|
||||
};
|
||||
};
|
||||
env: {
|
||||
languageOptions: {
|
||||
globals: {
|
||||
suite: "writable";
|
||||
test: "writable";
|
||||
describe: "writable";
|
||||
it: "writable";
|
||||
expect: "writable";
|
||||
assert: "writable";
|
||||
vitest: "writable";
|
||||
vi: "writable";
|
||||
beforeAll: "writable";
|
||||
afterAll: "writable";
|
||||
beforeEach: "writable";
|
||||
afterEach: "writable";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
environments: {
|
||||
env: {
|
||||
globals: {
|
||||
suite: true;
|
||||
test: true;
|
||||
describe: true;
|
||||
it: true;
|
||||
expect: true;
|
||||
assert: true;
|
||||
vitest: true;
|
||||
vi: true;
|
||||
beforeAll: true;
|
||||
afterAll: true;
|
||||
beforeEach: true;
|
||||
afterEach: true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
export { plugin as default };
|
||||
4659
node_modules/@vitest/eslint-plugin/dist/index.mjs
generated
vendored
Normal file
4659
node_modules/@vitest/eslint-plugin/dist/index.mjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
80
node_modules/@vitest/eslint-plugin/package.json
generated
vendored
Normal file
80
node_modules/@vitest/eslint-plugin/package.json
generated
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"name": "@vitest/eslint-plugin",
|
||||
"version": "1.1.7",
|
||||
"license": "MIT",
|
||||
"description": "Eslint plugin for vitest",
|
||||
"repository": "vitest-dev/eslint-plugin-vitest",
|
||||
"keywords": [
|
||||
"eslint",
|
||||
"eslintplugin",
|
||||
"eslint-plugin",
|
||||
"vitest eslint plugin",
|
||||
"vitest",
|
||||
"eslint plugin"
|
||||
],
|
||||
"author": "Verite Mugabo <https://veritemugabo.com/>",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.cjs"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@stylistic/eslint-plugin": "^2.6.2",
|
||||
"@types/eslint": "^9.6.0",
|
||||
"@types/mocha": "^10.0.7",
|
||||
"@types/node": "^20.14.15",
|
||||
"@typescript-eslint/eslint-plugin": "8.0.0",
|
||||
"@typescript-eslint/parser": "8.0.0",
|
||||
"@typescript-eslint/rule-tester": "8.0.0",
|
||||
"@vitest/eslint-plugin": "^1.0.0",
|
||||
"bumpp": "^9.4.2",
|
||||
"concurrently": "^8.2.2",
|
||||
"eslint": "^9.9.0",
|
||||
"eslint-doc-generator": "^1.7.1",
|
||||
"eslint-plugin-eslint-plugin": "^6.2.0",
|
||||
"eslint-remote-tester": "^4.0.1",
|
||||
"eslint-remote-tester-repositories": "^2.0.0",
|
||||
"importx": "^0.3.11",
|
||||
"tsx": "^4.17.0",
|
||||
"typescript": "^5.5.4",
|
||||
"unbuild": "^2.0.0",
|
||||
"vitest": "^1.6.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@typescript-eslint/utils": ">= 8.0",
|
||||
"eslint": ">= 8.57.0",
|
||||
"typescript": ">= 5.0.0",
|
||||
"vitest": "*"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"typescript": {
|
||||
"optional": true
|
||||
},
|
||||
"vitest": {
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "unbuild",
|
||||
"lint:eslint-docs": "pnpm build && eslint-doc-generator --check",
|
||||
"lint:js": "eslint . --fix",
|
||||
"lint": "concurrently --prefixColors auto \"pnpm:lint:*\"",
|
||||
"release": "pnpm build && bumpp package.json --commit --push --tag && pnpm publish",
|
||||
"stub": "unbuild --stub",
|
||||
"test:ci": "vitest run",
|
||||
"test": "vitest",
|
||||
"generate": "tsx scripts/generate.ts",
|
||||
"update:eslint-docs": "pnpm build && eslint-doc-generator",
|
||||
"tsc": "tsc --noEmit"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user