Skip to content

Commit a262ff6

Browse files
committed
Added in default setting validation
1 parent 6f90bcc commit a262ff6

File tree

7 files changed

+659
-666
lines changed

7 files changed

+659
-666
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 `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.
6+
Add the `ValidPresetAndDefaultSettings` 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 { ValidPresetSettings } from './valid-preset-settings';
48+
import { ValidPresetAndDefaultSettings } from './valid-preset-and-default-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-
ValidPresetSettings,
96+
ValidPresetAndDefaultSettings,
9797
];
9898

9999
/**

0 commit comments

Comments
 (0)