# vitest/no-restricted-matchers 📝 Disallow the use of certain matchers. ⚠️ This rule _warns_ in the 🌐 `all` config. ### Rule Details This rule disallows the use of certain matchers. ### For Example ### Options ```json { "vitest/no-restricted-matchers": [ "error", { "not": null } ] } ``` Examples of **incorrect** code for this rule with the above configuration ```js expect(a).not.toBe(b) ``` Examples of **correct** code for this rule with the above configuration ```js expect(a).toBe(b) ```