MCPcopy
hub / github.com/xojs/xo / validateXoConfig

Function validateXoConfig

lib/utils.ts:88–98  ·  view source on GitHub ↗
(xoConfig: XoConfigItem[])

Source from the content-addressed store, hash-verified

86@param xoConfig - The flat XO config to validate.
87*/
88export const validateXoConfig = (xoConfig: XoConfigItem[]): void => {
89 // Skip the first item (internal base config prepended by XO)
90 for (const config of xoConfig.values().drop(1)) {
91 for (const key of Object.keys(config)) {
92 const hint = legacyPropertyHints[key];
93 if (hint !== undefined) {
94 throw new Error(`Invalid XO config property \`${key}\`. ${hint}`);
95 }
96 }
97 }
98};
99
100/**
101Once a config is resolved, it is pre-processed to ensure that all properties are set correctly.

Callers 2

preProcessXoConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…