Skip to content

Commit

Permalink
Merge pull request #651 from Shopify/navdeep-json-missing-block
Browse files Browse the repository at this point in the history
Add `JsonMissingBlock` Check
  • Loading branch information
navdeep5 authored Dec 10, 2024
2 parents d01e657 + 06c48d8 commit 15995a7
Show file tree
Hide file tree
Showing 8 changed files with 597 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/mighty-planets-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@shopify/theme-check-common': minor
'@shopify/theme-check-node': minor
---

Add `JsonMissingBlock` check
2 changes: 2 additions & 0 deletions packages/theme-check-common/src/checks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { DeprecatedFilter } from './deprecated-filter';
import { DeprecatedTag } from './deprecated-tag';
import { EmptyBlockContent } from './empty-block-content';
import { ImgWidthAndHeight } from './img-width-and-height';
import { JSONMissingBlock } from './json-missing-block';
import { JSONSyntaxError } from './json-syntax-error';
import { LiquidFreeSettings } from './liquid-free-settings';
import { LiquidHTMLSyntaxError } from './liquid-html-syntax-error';
Expand Down Expand Up @@ -62,6 +63,7 @@ export const allChecks: (LiquidCheckDefinition | JSONCheckDefinition)[] = [
DeprecateLazysizes,
EmptyBlockContent,
ImgWidthAndHeight,
JSONMissingBlock,
JSONSyntaxError,
LiquidFreeSettings,
LiquidHTMLSyntaxError,
Expand Down
Loading

0 comments on commit 15995a7

Please sign in to comment.