vitest/prefer-to-be-object Style 
What it does 
This rule enforces using toBeObject() to check if a value is of type Object.
Why is this bad? 
Using other methods such as toBeInstanceOf(Object) or instanceof Object can be less clear and potentially misleading. Enforcing the use of toBeObject() provides more explicit and readable code, making your intentions clear and improving the overall maintainability and readability of your tests.
Examples 
Examples of incorrect code for this rule:
js
expectTypeOf({}).toBeInstanceOf(Object);
expectTypeOf({} instanceof Object).toBeTruthy();Examples of correct code for this rule:
js
expectTypeOf({}).toBeObject();
expectTypeOf({}).toBeObject();How to use 
To enable this rule in the CLI or using the config file, you can use:
bash
oxlint --deny vitest/prefer-to-be-object --vitest-pluginjson
{
  "plugins": ["vitest"],
  "rules": {
    "vitest/prefer-to-be-object": "error"
  }
}