Skip to content

Commit

Permalink
Reworked
Browse files Browse the repository at this point in the history
  • Loading branch information
AribaRajput committed Dec 19, 2024
1 parent 625d79e commit 6f90bcc
Show file tree
Hide file tree
Showing 8 changed files with 1,252 additions and 287 deletions.
2 changes: 1 addition & 1 deletion .changeset/chilled-bugs-juggle.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
'theme-check-vscode': minor
---

Add the `ValidBlockPresetSettings` check.
Add the `ValidPresetSettings` check. This check will allow us to validate that the settings defined in sections and blocks are valid. They are valid if they exist in either the block settings or the section settings.
4 changes: 2 additions & 2 deletions packages/theme-check-common/src/checks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import { ValidSchemaName } from './valid-schema-name';
import { ValidStaticBlockType } from './valid-static-block-type';
import { VariableName } from './variable-name';
import { MissingSchema } from './missing-schema';
import { ValidBlockPresetSettings } from './valid-block-preset-settings';
import { ValidPresetSettings } from './valid-preset-settings';

export const allChecks: (LiquidCheckDefinition | JSONCheckDefinition)[] = [
AppBlockValidTags,
Expand Down Expand Up @@ -93,7 +93,7 @@ export const allChecks: (LiquidCheckDefinition | JSONCheckDefinition)[] = [
ValidStaticBlockType,
VariableName,
ValidSchemaName,
ValidBlockPresetSettings,
ValidPresetSettings,
];

/**
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 6f90bcc

Please sign in to comment.