Skip to content

Commit 6f90bcc

Browse files
committed
Reworked
1 parent 625d79e commit 6f90bcc

File tree

8 files changed

+1252
-287
lines changed

8 files changed

+1252
-287
lines changed

.changeset/chilled-bugs-juggle.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
'theme-check-vscode': minor
44
---
55

6-
Add the `ValidBlockPresetSettings` check.
6+
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.

packages/theme-check-common/src/checks/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import { ValidSchemaName } from './valid-schema-name';
4545
import { ValidStaticBlockType } from './valid-static-block-type';
4646
import { VariableName } from './variable-name';
4747
import { MissingSchema } from './missing-schema';
48-
import { ValidBlockPresetSettings } from './valid-block-preset-settings';
48+
import { ValidPresetSettings } from './valid-preset-settings';
4949

5050
export const allChecks: (LiquidCheckDefinition | JSONCheckDefinition)[] = [
5151
AppBlockValidTags,
@@ -93,7 +93,7 @@ export const allChecks: (LiquidCheckDefinition | JSONCheckDefinition)[] = [
9393
ValidStaticBlockType,
9494
VariableName,
9595
ValidSchemaName,
96-
ValidBlockPresetSettings,
96+
ValidPresetSettings,
9797
];
9898

9999
/**

packages/theme-check-common/src/checks/valid-block-preset-settings/index.spec.ts

-166
This file was deleted.

packages/theme-check-common/src/checks/valid-block-preset-settings/index.ts

-116
This file was deleted.

0 commit comments

Comments
 (0)