Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 734 Bytes

File metadata and controls

29 lines (20 loc) · 734 Bytes

valid-os

💼 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"]
}