From 9bc68796b9013ce52cf92e0386ef5c09fdfe189f Mon Sep 17 00:00:00 2001 From: Verite Mugabo Date: Fri, 5 Apr 2024 20:17:59 -0400 Subject: [PATCH] chore: try --- README.md | 60 ------------------- docs/rules/consistent-test-filename.md | 3 - docs/rules/consistent-test-it.md | 3 - docs/rules/expect-expect.md | 3 - docs/rules/max-expects.md | 3 - docs/rules/max-nested-describe.md | 3 - docs/rules/no-alias-methods.md | 3 - docs/rules/no-commented-out-tests.md | 3 - docs/rules/no-conditional-expect.md | 3 - docs/rules/no-conditional-in-test.md | 3 - docs/rules/no-conditional-tests.md | 3 - docs/rules/no-disabled-tests.md | 3 - docs/rules/no-done-callback.md | 3 - docs/rules/no-duplicate-hooks.md | 3 - docs/rules/no-focused-tests.md | 3 - docs/rules/no-hooks.md | 3 - docs/rules/no-identical-title.md | 3 - docs/rules/no-import-node-test.md | 3 - docs/rules/no-interpolation-in-snapshots.md | 3 - docs/rules/no-large-snapshots.md | 3 - docs/rules/no-mocks-import.md | 3 - docs/rules/no-restricted-matchers.md | 3 - docs/rules/no-restricted-vi-methods.md | 3 - docs/rules/no-standalone-expect.md | 3 - docs/rules/no-test-prefixes.md | 3 - docs/rules/no-test-return-statement.md | 3 - docs/rules/prefer-called-with.md | 3 - docs/rules/prefer-comparison-matcher.md | 3 - docs/rules/prefer-each.md | 3 - docs/rules/prefer-equality-matcher.md | 3 - docs/rules/prefer-expect-assertions.md | 3 - docs/rules/prefer-expect-resolves.md | 3 - docs/rules/prefer-hooks-in-order.md | 3 - docs/rules/prefer-hooks-on-top.md | 3 - docs/rules/prefer-lowercase-title.md | 3 - docs/rules/prefer-mock-promise-shorthand.md | 3 - docs/rules/prefer-snapshot-hint.md | 3 - docs/rules/prefer-spy-on.md | 3 - docs/rules/prefer-strict-equal.md | 3 - docs/rules/prefer-to-be-falsy.md | 3 - docs/rules/prefer-to-be-object.md | 3 - docs/rules/prefer-to-be-truthy.md | 3 - docs/rules/prefer-to-be.md | 3 - docs/rules/prefer-to-contain.md | 3 - docs/rules/prefer-to-have-length.md | 3 - docs/rules/prefer-todo.md | 3 - docs/rules/require-hook.md | 3 - ...l-test-context-for-concurrent-snapshots.md | 3 - docs/rules/require-to-throw-message.md | 3 - docs/rules/require-top-level-describe.md | 3 - docs/rules/valid-describe-callback.md | 3 - docs/rules/valid-expect.md | 3 - docs/rules/valid-title.md | 3 - 53 files changed, 216 deletions(-) diff --git a/README.md b/README.md index 4beecd5..84c7975 100644 --- a/README.md +++ b/README.md @@ -129,18 +129,14 @@ If you're using this feature, you should also enabled `typecheck` in the setting -<<<<<<< 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 | | 🌐 | | | | @@ -195,62 +191,6 @@ 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)) diff --git a/docs/rules/consistent-test-filename.md b/docs/rules/consistent-test-filename.md index c864f57..33e7fd7 100644 --- a/docs/rules/consistent-test-filename.md +++ b/docs/rules/consistent-test-filename.md @@ -1,10 +1,7 @@ # Forbidden .spec test file pattern (`vitest/consistent-test-filename`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) ### Rule Details diff --git a/docs/rules/consistent-test-it.md b/docs/rules/consistent-test-it.md index 36ac4fb..456d159 100644 --- a/docs/rules/consistent-test-it.md +++ b/docs/rules/consistent-test-it.md @@ -1,10 +1,7 @@ # 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). diff --git a/docs/rules/expect-expect.md b/docs/rules/expect-expect.md index 35b2af5..ee50787 100644 --- a/docs/rules/expect-expect.md +++ b/docs/rules/expect-expect.md @@ -1,10 +1,7 @@ # Enforce having expectation in test body (`vitest/expect-expect`) -<<<<<<< HEAD πŸ’Ό This rule is enabled in the βœ… `recommended` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) diff --git a/docs/rules/max-expects.md b/docs/rules/max-expects.md index ba596b3..8c4f97e 100644 --- a/docs/rules/max-expects.md +++ b/docs/rules/max-expects.md @@ -1,10 +1,7 @@ # Enforce a maximum number of expect per test (`vitest/max-expects`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) ### Rule Details diff --git a/docs/rules/max-nested-describe.md b/docs/rules/max-nested-describe.md index f450cdc..8d66d4f 100644 --- a/docs/rules/max-nested-describe.md +++ b/docs/rules/max-nested-describe.md @@ -1,10 +1,7 @@ # 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)) ## Rule Details diff --git a/docs/rules/no-alias-methods.md b/docs/rules/no-alias-methods.md index d452b2f..65768ad 100644 --- a/docs/rules/no-alias-methods.md +++ b/docs/rules/no-alias-methods.md @@ -1,10 +1,7 @@ # 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). diff --git a/docs/rules/no-commented-out-tests.md b/docs/rules/no-commented-out-tests.md index b28a429..1b0a17f 100644 --- a/docs/rules/no-commented-out-tests.md +++ b/docs/rules/no-commented-out-tests.md @@ -1,10 +1,7 @@ # Disallow commented out tests (`vitest/no-commented-out-tests`) -<<<<<<< HEAD πŸ’Ό This rule is enabled in the βœ… `recommended` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) ## Rule Details diff --git a/docs/rules/no-conditional-expect.md b/docs/rules/no-conditional-expect.md index 7011c8c..c269703 100644 --- a/docs/rules/no-conditional-expect.md +++ b/docs/rules/no-conditional-expect.md @@ -1,10 +1,7 @@ # Disallow conditional expects (`vitest/no-conditional-expect`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) ## Rule Details diff --git a/docs/rules/no-conditional-in-test.md b/docs/rules/no-conditional-in-test.md index ffb1b24..bf3e15d 100644 --- a/docs/rules/no-conditional-in-test.md +++ b/docs/rules/no-conditional-in-test.md @@ -1,10 +1,7 @@ # Disallow conditional tests (`vitest/no-conditional-in-test`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) ### Rule Details diff --git a/docs/rules/no-conditional-tests.md b/docs/rules/no-conditional-tests.md index c705c83..937e4a7 100644 --- a/docs/rules/no-conditional-tests.md +++ b/docs/rules/no-conditional-tests.md @@ -1,10 +1,7 @@ # Disallow conditional tests (`vitest/no-conditional-tests`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) ## Rule Details diff --git a/docs/rules/no-disabled-tests.md b/docs/rules/no-disabled-tests.md index b40b013..6d6a09b 100644 --- a/docs/rules/no-disabled-tests.md +++ b/docs/rules/no-disabled-tests.md @@ -1,10 +1,7 @@ # Disallow disabled tests (`vitest/no-disabled-tests`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) ## Rule Details diff --git a/docs/rules/no-done-callback.md b/docs/rules/no-done-callback.md index bacd94a..02272bf 100644 --- a/docs/rules/no-done-callback.md +++ b/docs/rules/no-done-callback.md @@ -2,11 +2,8 @@ ❌ 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). diff --git a/docs/rules/no-duplicate-hooks.md b/docs/rules/no-duplicate-hooks.md index 3ca52c4..aa5e016 100644 --- a/docs/rules/no-duplicate-hooks.md +++ b/docs/rules/no-duplicate-hooks.md @@ -1,10 +1,7 @@ # Disallow duplicate hooks and teardown hooks (`vitest/no-duplicate-hooks`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) ## Rule Details diff --git a/docs/rules/no-focused-tests.md b/docs/rules/no-focused-tests.md index 529f83c..94aa901 100644 --- a/docs/rules/no-focused-tests.md +++ b/docs/rules/no-focused-tests.md @@ -1,10 +1,7 @@ # 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). diff --git a/docs/rules/no-hooks.md b/docs/rules/no-hooks.md index 0931f97..e4f9a1d 100644 --- a/docs/rules/no-hooks.md +++ b/docs/rules/no-hooks.md @@ -1,10 +1,7 @@ # Disallow setup and teardown hooks (`vitest/no-hooks`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) ## Rule details diff --git a/docs/rules/no-identical-title.md b/docs/rules/no-identical-title.md index 6cf29cb..6378e47 100644 --- a/docs/rules/no-identical-title.md +++ b/docs/rules/no-identical-title.md @@ -1,10 +1,7 @@ # 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). diff --git a/docs/rules/no-import-node-test.md b/docs/rules/no-import-node-test.md index ffe55c1..ab0bc2f 100644 --- a/docs/rules/no-import-node-test.md +++ b/docs/rules/no-import-node-test.md @@ -1,10 +1,7 @@ # 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). diff --git a/docs/rules/no-interpolation-in-snapshots.md b/docs/rules/no-interpolation-in-snapshots.md index 0e4c6ef..d92cb26 100644 --- a/docs/rules/no-interpolation-in-snapshots.md +++ b/docs/rules/no-interpolation-in-snapshots.md @@ -1,10 +1,7 @@ # 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). diff --git a/docs/rules/no-large-snapshots.md b/docs/rules/no-large-snapshots.md index c15f4f2..aaad801 100644 --- a/docs/rules/no-large-snapshots.md +++ b/docs/rules/no-large-snapshots.md @@ -1,10 +1,7 @@ # Disallow large snapshots (`vitest/no-large-snapshots`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) ## Rule Details diff --git a/docs/rules/no-mocks-import.md b/docs/rules/no-mocks-import.md index 09ab442..8267630 100644 --- a/docs/rules/no-mocks-import.md +++ b/docs/rules/no-mocks-import.md @@ -1,10 +1,7 @@ # Disallow importing from __mocks__ directory (`vitest/no-mocks-import`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) ## Rule Details diff --git a/docs/rules/no-restricted-matchers.md b/docs/rules/no-restricted-matchers.md index dd92d92..ebd5de3 100644 --- a/docs/rules/no-restricted-matchers.md +++ b/docs/rules/no-restricted-matchers.md @@ -1,10 +1,7 @@ # Disallow the use of certain matchers (`vitest/no-restricted-matchers`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) ### Rule Details diff --git a/docs/rules/no-restricted-vi-methods.md b/docs/rules/no-restricted-vi-methods.md index 9641ea6..9eea038 100644 --- a/docs/rules/no-restricted-vi-methods.md +++ b/docs/rules/no-restricted-vi-methods.md @@ -1,10 +1,7 @@ # Disallow specific `vi.` methods (`vitest/no-restricted-vi-methods`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) You may wish to restrict the use of specific `vi` methods. diff --git a/docs/rules/no-standalone-expect.md b/docs/rules/no-standalone-expect.md index f9c3ff6..4505c0a 100644 --- a/docs/rules/no-standalone-expect.md +++ b/docs/rules/no-standalone-expect.md @@ -1,10 +1,7 @@ # Disallow using `expect` outside of `it` or `test` blocks (`vitest/no-standalone-expect`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) ## Rule Details diff --git a/docs/rules/no-test-prefixes.md b/docs/rules/no-test-prefixes.md index b110cc8..0ed640b 100644 --- a/docs/rules/no-test-prefixes.md +++ b/docs/rules/no-test-prefixes.md @@ -1,10 +1,7 @@ # Disallow using `test` as a prefix (`vitest/no-test-prefixes`) -<<<<<<< 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). diff --git a/docs/rules/no-test-return-statement.md b/docs/rules/no-test-return-statement.md index 704910f..db137ab 100644 --- a/docs/rules/no-test-return-statement.md +++ b/docs/rules/no-test-return-statement.md @@ -1,10 +1,7 @@ # Disallow return statements in tests (`vitest/no-test-return-statement`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) ### Rule Details diff --git a/docs/rules/prefer-called-with.md b/docs/rules/prefer-called-with.md index e0096e2..f5ef941 100644 --- a/docs/rules/prefer-called-with.md +++ b/docs/rules/prefer-called-with.md @@ -1,10 +1,7 @@ # Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()` (`vitest/prefer-called-with`) -<<<<<<< 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). diff --git a/docs/rules/prefer-comparison-matcher.md b/docs/rules/prefer-comparison-matcher.md index 141c1a9..c822c43 100644 --- a/docs/rules/prefer-comparison-matcher.md +++ b/docs/rules/prefer-comparison-matcher.md @@ -1,10 +1,7 @@ # Suggest using the built-in comparison matchers (`vitest/prefer-comparison-matcher`) -<<<<<<< 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). diff --git a/docs/rules/prefer-each.md b/docs/rules/prefer-each.md index 4799cf7..4a386ae 100644 --- a/docs/rules/prefer-each.md +++ b/docs/rules/prefer-each.md @@ -1,10 +1,7 @@ # Prefer `each` rather than manual loops (`vitest/prefer-each`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) ```js diff --git a/docs/rules/prefer-equality-matcher.md b/docs/rules/prefer-equality-matcher.md index c4ebd93..f57e847 100644 --- a/docs/rules/prefer-equality-matcher.md +++ b/docs/rules/prefer-equality-matcher.md @@ -1,10 +1,7 @@ # Suggest using the built-in quality matchers (`vitest/prefer-equality-matcher`) -<<<<<<< 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). diff --git a/docs/rules/prefer-expect-assertions.md b/docs/rules/prefer-expect-assertions.md index b8f03c3..0d77e3c 100644 --- a/docs/rules/prefer-expect-assertions.md +++ b/docs/rules/prefer-expect-assertions.md @@ -1,10 +1,7 @@ # Suggest using expect assertions instead of callbacks (`vitest/prefer-expect-assertions`) -<<<<<<< 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). diff --git a/docs/rules/prefer-expect-resolves.md b/docs/rules/prefer-expect-resolves.md index 4f884e9..785bff1 100644 --- a/docs/rules/prefer-expect-resolves.md +++ b/docs/rules/prefer-expect-resolves.md @@ -1,10 +1,7 @@ # Suggest using `expect().resolves` over `expect(await ...)` syntax (`vitest/prefer-expect-resolves`) -<<<<<<< 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). diff --git a/docs/rules/prefer-hooks-in-order.md b/docs/rules/prefer-hooks-in-order.md index 88b10fb..9479a31 100644 --- a/docs/rules/prefer-hooks-in-order.md +++ b/docs/rules/prefer-hooks-in-order.md @@ -1,10 +1,7 @@ # Prefer having hooks in consistent order (`vitest/prefer-hooks-in-order`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) ```js diff --git a/docs/rules/prefer-hooks-on-top.md b/docs/rules/prefer-hooks-on-top.md index d5f73bd..a1a62da 100644 --- a/docs/rules/prefer-hooks-on-top.md +++ b/docs/rules/prefer-hooks-on-top.md @@ -1,10 +1,7 @@ # Suggest having hooks before any test cases (`vitest/prefer-hooks-on-top`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) ```ts // bad diff --git a/docs/rules/prefer-lowercase-title.md b/docs/rules/prefer-lowercase-title.md index f23fba7..582bf09 100644 --- a/docs/rules/prefer-lowercase-title.md +++ b/docs/rules/prefer-lowercase-title.md @@ -1,10 +1,7 @@ # Enforce lowercase titles (`vitest/prefer-lowercase-title`) -<<<<<<< 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). diff --git a/docs/rules/prefer-mock-promise-shorthand.md b/docs/rules/prefer-mock-promise-shorthand.md index 2e7de0c..7cd3d9e 100644 --- a/docs/rules/prefer-mock-promise-shorthand.md +++ b/docs/rules/prefer-mock-promise-shorthand.md @@ -1,10 +1,7 @@ # Prefer mock resolved/rejected shorthands for promises (`vitest/prefer-mock-promise-shorthand`) -<<<<<<< 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). diff --git a/docs/rules/prefer-snapshot-hint.md b/docs/rules/prefer-snapshot-hint.md index 846521e..ed522cd 100644 --- a/docs/rules/prefer-snapshot-hint.md +++ b/docs/rules/prefer-snapshot-hint.md @@ -1,10 +1,7 @@ # Prefer including a hint with external snapshots (`vitest/prefer-snapshot-hint`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) When working with external snapshot matchers it's considered best practice to diff --git a/docs/rules/prefer-spy-on.md b/docs/rules/prefer-spy-on.md index f34aee8..1b1adf7 100644 --- a/docs/rules/prefer-spy-on.md +++ b/docs/rules/prefer-spy-on.md @@ -1,10 +1,7 @@ # Suggest using `vi.spyOn` (`vitest/prefer-spy-on`) -<<<<<<< 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). diff --git a/docs/rules/prefer-strict-equal.md b/docs/rules/prefer-strict-equal.md index eb2e5ef..c19b992 100644 --- a/docs/rules/prefer-strict-equal.md +++ b/docs/rules/prefer-strict-equal.md @@ -1,10 +1,7 @@ # Prefer strict equal over equal (`vitest/prefer-strict-equal`) -<<<<<<< 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). diff --git a/docs/rules/prefer-to-be-falsy.md b/docs/rules/prefer-to-be-falsy.md index e7cd7eb..d908f9b 100644 --- a/docs/rules/prefer-to-be-falsy.md +++ b/docs/rules/prefer-to-be-falsy.md @@ -1,10 +1,7 @@ # Suggest using toBeFalsy() (`vitest/prefer-to-be-falsy`) -<<<<<<< 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). diff --git a/docs/rules/prefer-to-be-object.md b/docs/rules/prefer-to-be-object.md index 94ef0c9..9129030 100644 --- a/docs/rules/prefer-to-be-object.md +++ b/docs/rules/prefer-to-be-object.md @@ -1,10 +1,7 @@ # Prefer toBeObject() (`vitest/prefer-to-be-object`) -<<<<<<< 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). diff --git a/docs/rules/prefer-to-be-truthy.md b/docs/rules/prefer-to-be-truthy.md index 6a6ab88..c321ce0 100644 --- a/docs/rules/prefer-to-be-truthy.md +++ b/docs/rules/prefer-to-be-truthy.md @@ -1,10 +1,7 @@ # Suggest using `toBeTruthy` (`vitest/prefer-to-be-truthy`) -<<<<<<< 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). diff --git a/docs/rules/prefer-to-be.md b/docs/rules/prefer-to-be.md index 0efcf69..b8652c6 100644 --- a/docs/rules/prefer-to-be.md +++ b/docs/rules/prefer-to-be.md @@ -1,10 +1,7 @@ # Suggest using toBe() (`vitest/prefer-to-be`) -<<<<<<< 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). diff --git a/docs/rules/prefer-to-contain.md b/docs/rules/prefer-to-contain.md index 9368418..4b511a5 100644 --- a/docs/rules/prefer-to-contain.md +++ b/docs/rules/prefer-to-contain.md @@ -1,10 +1,7 @@ # Prefer using toContain() (`vitest/prefer-to-contain`) -<<<<<<< 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). diff --git a/docs/rules/prefer-to-have-length.md b/docs/rules/prefer-to-have-length.md index ae6f9f5..b0f0118 100644 --- a/docs/rules/prefer-to-have-length.md +++ b/docs/rules/prefer-to-have-length.md @@ -1,10 +1,7 @@ # Suggest using toHaveLength() (`vitest/prefer-to-have-length`) -<<<<<<< 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). diff --git a/docs/rules/prefer-todo.md b/docs/rules/prefer-todo.md index 5dcdb16..fe25d13 100644 --- a/docs/rules/prefer-todo.md +++ b/docs/rules/prefer-todo.md @@ -1,10 +1,7 @@ # Suggest using `test.todo` (`vitest/prefer-todo`) -<<<<<<< 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). diff --git a/docs/rules/require-hook.md b/docs/rules/require-hook.md index ca6c666..e7acf95 100644 --- a/docs/rules/require-hook.md +++ b/docs/rules/require-hook.md @@ -1,10 +1,7 @@ # Require setup and teardown to be within a hook (`vitest/require-hook`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) It's common when writing tests to need to perform a particular setup work before and after a test suite run. Because Vitest executes all `describe` handlers in a test file _before_ it executes any of the actual tests, it's important to ensure setup and teardown work is done inside `before*` and `after*` handlers respectively, rather than inside the `describe` blocks. diff --git a/docs/rules/require-local-test-context-for-concurrent-snapshots.md b/docs/rules/require-local-test-context-for-concurrent-snapshots.md index 7fcb0a9..23feef7 100644 --- a/docs/rules/require-local-test-context-for-concurrent-snapshots.md +++ b/docs/rules/require-local-test-context-for-concurrent-snapshots.md @@ -1,10 +1,7 @@ # Require local Test Context for concurrent snapshot tests (`vitest/require-local-test-context-for-concurrent-snapshots`) -<<<<<<< HEAD πŸ’Ό This rule is enabled in the βœ… `recommended` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) ## Rule details diff --git a/docs/rules/require-to-throw-message.md b/docs/rules/require-to-throw-message.md index b262801..590eb14 100644 --- a/docs/rules/require-to-throw-message.md +++ b/docs/rules/require-to-throw-message.md @@ -1,10 +1,7 @@ # Require toThrow() to be called with an error message (`vitest/require-to-throw-message`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) This rule triggers a warning if `toThrow()` or `toThrowError()` is used without diff --git a/docs/rules/require-top-level-describe.md b/docs/rules/require-top-level-describe.md index 08275ac..be31882 100644 --- a/docs/rules/require-top-level-describe.md +++ b/docs/rules/require-top-level-describe.md @@ -1,10 +1,7 @@ # Enforce that all tests are in a top-level describe (`vitest/require-top-level-describe`) -<<<<<<< HEAD ⚠️ This rule _warns_ in the 🌐 `all` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) This rule triggers warning if a test case (`test` and `it`) or a hook (`beforeAll`, `beforeEach`, `afterEach`, `afterAll`) is not located in a top-level `describe` block. diff --git a/docs/rules/valid-describe-callback.md b/docs/rules/valid-describe-callback.md index 576be96..37dae07 100644 --- a/docs/rules/valid-describe-callback.md +++ b/docs/rules/valid-describe-callback.md @@ -1,10 +1,7 @@ # Enforce valid describe callback (`vitest/valid-describe-callback`) -<<<<<<< HEAD πŸ’Ό This rule is enabled in the βœ… `recommended` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) diff --git a/docs/rules/valid-expect.md b/docs/rules/valid-expect.md index 09b3b0e..c79ba62 100644 --- a/docs/rules/valid-expect.md +++ b/docs/rules/valid-expect.md @@ -1,10 +1,7 @@ # Enforce valid `expect()` usage (`vitest/valid-expect`) -<<<<<<< HEAD πŸ’Ό This rule is enabled in the βœ… `recommended` config. -======= ->>>>>>> d24de5b (fix plugin key (#409)) This rule triggers a warning if `expect` is called with no argument or with more than one argument. You change that behavior by setting the `minArgs` and `maxArgs` options. diff --git a/docs/rules/valid-title.md b/docs/rules/valid-title.md index 2581ffa..fad9c12 100644 --- a/docs/rules/valid-title.md +++ b/docs/rules/valid-title.md @@ -1,10 +1,7 @@ # Enforce valid titles (`vitest/valid-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).