💼 This rule is enabled in the following configs: ✔️ legacy-recommended, ✅ recommended, 📦 recommended-publishable.
This rule does the following checks on the value of the os property:
- It must be an array
- All items in the array should be one of the following: "aix", "android", "darwin", "freebsd", "linux", "openbsd", "sunos", and "win32"
Note
These values are the list of possible process.platform values documented by Node.
Example of incorrect code for this rule:
{
"os": ["x64"]
}Example of correct code for this rule:
{
"os": ["linux", "win32"]
}