Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Latest commit

 

History

History
60 lines (41 loc) · 887 Bytes

valid_json.md

File metadata and controls

60 lines (41 loc) · 887 Bytes

Enforce valid JSON (ValidJson)

This check exists to prevent invalid JSON files in themes.

Check Details

This check is aimed at eliminating errors in JSON files.

👎 Examples of incorrect code for this check:

{
  "comma": "trailing",
}
{
  "quotes": 'Oops, those are single quotes'
}

👍 Examples of correct code for this check:

{
  "comma": "not trailing"
}
{
  "quotes": "Yes. Double quotes."
}

Check Options

The default configuration for this check is the following:

ValidJson:
  enabled: true

When Not To Use It

It is not safe to disable this rule.

Version

This check has been introduced in Theme Check 0.1.0.

Resources