@vitest/eslint-plugin 1.1.4 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -46,7 +46,7 @@ Add `vitest` to the plugins section of your `.eslintrc` configuration file. You
46
46
 
47
47
  ```json
48
48
  {
49
- "plugins": ["vitest"]
49
+ "plugins": ["@vitest"]
50
50
  }
51
51
  ```
52
52
 
@@ -69,7 +69,7 @@ If you're using old Eslint configuration, make sure to use legacy key like the f
69
69
 
70
70
  ```js
71
71
  {
72
- "extends": ["plugin:vitest/legacy-recommended"] // or legacy-all
72
+ "extends": ["plugin:@vitest/legacy-recommended"] // or legacy-all
73
73
  }
74
74
  ```
75
75
 
@@ -165,6 +165,7 @@ export default [
165
165
  | [prefer-to-contain](docs/rules/prefer-to-contain.md) | enforce using toContain() | | 🌐 | 🔧 | | |
166
166
  | [prefer-to-have-length](docs/rules/prefer-to-have-length.md) | enforce using toHaveLength() | | 🌐 | 🔧 | | |
167
167
  | [prefer-todo](docs/rules/prefer-todo.md) | enforce using `test.todo` | | 🌐 | 🔧 | | |
168
+ | [prefer-vi-mocked](docs/rules/prefer-vi-mocked.md) | Prefer `vi.mocked()` over `fn as Mock` | | 🌐 | 🔧 | | |
168
169
  | [require-hook](docs/rules/require-hook.md) | require setup and teardown to be within a hook | | 🌐 | | | |
169
170
  | [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 | ✅ | | | | |
170
171
  | [require-to-throw-message](docs/rules/require-to-throw-message.md) | require toThrow() to be called with an error message | | 🌐 | | | |