Skip to content

Commit ff3ba37

Browse files
committed
feat(linter/eslint-plugin-vitest): Mention that this rule can be reuse with vitest
1 parent 2f55ec0 commit ff3ba37

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

crates/oxc_linter/src/rules/jest/no_mocks_import.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@ declare_oxc_lint!(
4343
/// import thing from 'thing';
4444
/// require('thing');
4545
/// ```
46+
///
47+
/// This rule is compatible with [eslint-plugin-vitest](https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-mocks-import.md),
48+
/// to use it, add the following configuration to your `.oxlintrc.json`:
49+
///
50+
/// ```json
51+
/// {
52+
/// "rules": {
53+
/// "vitest/no-mocks-import": "error"
54+
/// }
55+
/// }
56+
/// ```
4657
NoMocksImport,
4758
jest,
4859
style

0 commit comments

Comments
 (0)