Skip to content

Commit

Permalink
fix plugin key (#409)
Browse files Browse the repository at this point in the history
* chore: update

* chore: update

* chore: updated

* chore: updated
  • Loading branch information
veritem committed Apr 6, 2024
1 parent 0445aaa commit 326d814
Show file tree
Hide file tree
Showing 53 changed files with 216 additions and 0 deletions.
60 changes: 60 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,18 @@ If you're using this feature, you should also enabled `typecheck` in the setting

<!-- begin auto-generated rules list -->

<<<<<<< HEAD
💼 Configurations enabled in.\
⚠️ Configurations set to warn in.\
🌐 Set in the `all` configuration.\
✅ Set in the `recommended` configuration.\
=======
>>>>>>> d24de5b (fix plugin key (#409))
🔧 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.

<<<<<<< HEAD
| Name                                                | Description | 💼 | ⚠️ | 🔧 | 💡 ||
| :----------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------- | :- | :- | :- | :- | :- |
| [consistent-test-filename](docs/rules/consistent-test-filename.md) | forbidden .spec test file pattern | | 🌐 | | | |
Expand Down Expand Up @@ -191,6 +195,62 @@ If you're using this feature, you should also enabled `typecheck` in the setting
| [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 || | 🔧 | | |
=======
| Name                                                | Description | 🔧 | 💡 ||
| :----------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------- | :- | :- | :- |
| [consistent-test-filename](docs/rules/consistent-test-filename.md) | forbidden .spec test file pattern | | | |
| [consistent-test-it](docs/rules/consistent-test-it.md) | Prefer 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) | Nested describe block should 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) | Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()` | 🔧 | | |
| [prefer-comparison-matcher](docs/rules/prefer-comparison-matcher.md) | Suggest using the built-in comparison matchers | 🔧 | | |
| [prefer-each](docs/rules/prefer-each.md) | Prefer `each` rather than manual loops | | | |
| [prefer-equality-matcher](docs/rules/prefer-equality-matcher.md) | Suggest using the built-in quality matchers | | 💡 | |
| [prefer-expect-assertions](docs/rules/prefer-expect-assertions.md) | Suggest using expect assertions instead of callbacks | | 💡 | |
| [prefer-expect-resolves](docs/rules/prefer-expect-resolves.md) | Suggest using `expect().resolves` over `expect(await ...)` syntax | 🔧 | | |
| [prefer-hooks-in-order](docs/rules/prefer-hooks-in-order.md) | Prefer having hooks in consistent order | | | |
| [prefer-hooks-on-top](docs/rules/prefer-hooks-on-top.md) | Suggest 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) | Prefer mock resolved/rejected shorthands for promises | 🔧 | | |
| [prefer-snapshot-hint](docs/rules/prefer-snapshot-hint.md) | Prefer including a hint with external snapshots | | | |
| [prefer-spy-on](docs/rules/prefer-spy-on.md) | Suggest using `vi.spyOn` | 🔧 | | |
| [prefer-strict-equal](docs/rules/prefer-strict-equal.md) | Prefer strict equal over equal | | 💡 | |
| [prefer-to-be](docs/rules/prefer-to-be.md) | Suggest using toBe() | 🔧 | | |
| [prefer-to-be-falsy](docs/rules/prefer-to-be-falsy.md) | Suggest using toBeFalsy() | 🔧 | | |
| [prefer-to-be-object](docs/rules/prefer-to-be-object.md) | Prefer toBeObject() | 🔧 | | |
| [prefer-to-be-truthy](docs/rules/prefer-to-be-truthy.md) | Suggest using `toBeTruthy` | 🔧 | | |
| [prefer-to-contain](docs/rules/prefer-to-contain.md) | Prefer using toContain() | 🔧 | | |
| [prefer-to-have-length](docs/rules/prefer-to-have-length.md) | Suggest using toHaveLength() | 🔧 | | |
| [prefer-todo](docs/rules/prefer-todo.md) | Suggest using `test.todo` | 🔧 | | |
| [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 | 🔧 | | |
>>>>>>> d24de5b (fix plugin key (#409))
<!-- end auto-generated rules list -->

Expand Down
3 changes: 3 additions & 0 deletions docs/rules/consistent-test-filename.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Forbidden .spec test file pattern (`vitest/consistent-test-filename`)

<<<<<<< HEAD
⚠️ This rule _warns_ in the 🌐 `all` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
<!-- end auto-generated rule header -->
### Rule Details
Expand Down
3 changes: 3 additions & 0 deletions docs/rules/consistent-test-it.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Prefer test or it but not both (`vitest/consistent-test-it`)

<<<<<<< HEAD
⚠️ This rule _warns_ in the 🌐 `all` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

<!-- end auto-generated rule header -->
Expand Down
3 changes: 3 additions & 0 deletions docs/rules/expect-expect.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Enforce having expectation in test body (`vitest/expect-expect`)

<<<<<<< HEAD
💼 This rule is enabled in the ✅ `recommended` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
<!-- end auto-generated rule header -->

Expand Down
3 changes: 3 additions & 0 deletions docs/rules/max-expects.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Enforce a maximum number of expect per test (`vitest/max-expects`)

<<<<<<< HEAD
⚠️ This rule _warns_ in the 🌐 `all` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
<!-- end auto-generated rule header -->
### Rule Details
Expand Down
3 changes: 3 additions & 0 deletions docs/rules/max-nested-describe.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Nested describe block should be less than set max value or default value (`vitest/max-nested-describe`)

<<<<<<< HEAD
⚠️ This rule _warns_ in the 🌐 `all` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
<!-- end auto-generated rule header -->
## Rule Details
Expand Down
3 changes: 3 additions & 0 deletions docs/rules/no-alias-methods.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Disallow alias methods (`vitest/no-alias-methods`)

<<<<<<< HEAD
⚠️ This rule _warns_ in the 🌐 `all` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

<!-- end auto-generated rule header -->
Expand Down
3 changes: 3 additions & 0 deletions docs/rules/no-commented-out-tests.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Disallow commented out tests (`vitest/no-commented-out-tests`)

<<<<<<< HEAD
💼 This rule is enabled in the ✅ `recommended` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
<!-- end auto-generated rule header -->
## Rule Details
Expand Down
3 changes: 3 additions & 0 deletions docs/rules/no-conditional-expect.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Disallow conditional expects (`vitest/no-conditional-expect`)

<<<<<<< HEAD
⚠️ This rule _warns_ in the 🌐 `all` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
<!-- end auto-generated rule header -->
## Rule Details
Expand Down
3 changes: 3 additions & 0 deletions docs/rules/no-conditional-in-test.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Disallow conditional tests (`vitest/no-conditional-in-test`)

<<<<<<< HEAD
⚠️ This rule _warns_ in the 🌐 `all` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
<!-- end auto-generated rule header -->
### Rule Details

Expand Down
3 changes: 3 additions & 0 deletions docs/rules/no-conditional-tests.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Disallow conditional tests (`vitest/no-conditional-tests`)

<<<<<<< HEAD
⚠️ This rule _warns_ in the 🌐 `all` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
<!-- end auto-generated rule header -->
## Rule Details
Expand Down
3 changes: 3 additions & 0 deletions docs/rules/no-disabled-tests.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Disallow disabled tests (`vitest/no-disabled-tests`)

<<<<<<< HEAD
⚠️ This rule _warns_ in the 🌐 `all` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
<!-- end auto-generated rule header -->
## Rule Details
Expand Down
3 changes: 3 additions & 0 deletions docs/rules/no-done-callback.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

❌ This rule is deprecated.

<<<<<<< HEAD
⚠️ This rule _warns_ in the 🌐 `all` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
💡 This rule is manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).

<!-- end auto-generated rule header -->
Expand Down
3 changes: 3 additions & 0 deletions docs/rules/no-duplicate-hooks.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Disallow duplicate hooks and teardown hooks (`vitest/no-duplicate-hooks`)

<<<<<<< HEAD
⚠️ This rule _warns_ in the 🌐 `all` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
<!-- end auto-generated rule header -->
## Rule Details
Expand Down
3 changes: 3 additions & 0 deletions docs/rules/no-focused-tests.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Disallow focused tests (`vitest/no-focused-tests`)

<<<<<<< HEAD
⚠️ This rule _warns_ in the 🌐 `all` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

<!-- end auto-generated rule header -->
Expand Down
3 changes: 3 additions & 0 deletions docs/rules/no-hooks.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Disallow setup and teardown hooks (`vitest/no-hooks`)

<<<<<<< HEAD
⚠️ This rule _warns_ in the 🌐 `all` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
<!-- end auto-generated rule header -->
## Rule details
Expand Down
3 changes: 3 additions & 0 deletions docs/rules/no-identical-title.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Disallow identical titles (`vitest/no-identical-title`)

<<<<<<< HEAD
💼 This rule is enabled in the ✅ `recommended` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

<!-- end auto-generated rule header -->
Expand Down
3 changes: 3 additions & 0 deletions docs/rules/no-import-node-test.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Disallow importing `node:test` (`vitest/no-import-node-test`)

<<<<<<< HEAD
💼 This rule is enabled in the ✅ `recommended` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

<!-- end auto-generated rule header -->
Expand Down
3 changes: 3 additions & 0 deletions docs/rules/no-interpolation-in-snapshots.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Disallow string interpolation in snapshots (`vitest/no-interpolation-in-snapshots`)

<<<<<<< HEAD
⚠️ This rule _warns_ in the 🌐 `all` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

<!-- end auto-generated rule header -->
Expand Down
3 changes: 3 additions & 0 deletions docs/rules/no-large-snapshots.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Disallow large snapshots (`vitest/no-large-snapshots`)

<<<<<<< HEAD
⚠️ This rule _warns_ in the 🌐 `all` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
<!-- end auto-generated rule header -->
## Rule Details
Expand Down
3 changes: 3 additions & 0 deletions docs/rules/no-mocks-import.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Disallow importing from __mocks__ directory (`vitest/no-mocks-import`)

<<<<<<< HEAD
⚠️ This rule _warns_ in the 🌐 `all` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
<!-- end auto-generated rule header -->
## Rule Details
Expand Down
3 changes: 3 additions & 0 deletions docs/rules/no-restricted-matchers.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Disallow the use of certain matchers (`vitest/no-restricted-matchers`)

<<<<<<< HEAD
⚠️ This rule _warns_ in the 🌐 `all` config.

=======
>>>>>>> d24de5b (fix plugin key (#409))
<!-- end auto-generated rule header -->
### Rule Details
Expand Down
Loading

0 comments on commit 326d814

Please sign in to comment.