💼 This rule is enabled in the following configs: ✔️ legacy-recommended, ✅ recommended, 📦 recommended-publishable.
This rule does the following checks on the value of the type property:
- It must be a
string - The value must be either
commonjsormodule
Example of incorrect code for this rule:
{
"type": "esm"
}Example of correct code for this rule:
{
"type": "module"
}See also: Node Documentation