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

Method setXoConfig

lib/xo.ts:590–607  ·  view source on GitHub ↗

Sets the XO config on the XO instance.

()

Source from the content-addressed store, hash-verified

588 Sets the XO config on the XO instance.
589 */
590 async setXoConfig() {
591 if (this.#xoConfig) {
592 return;
593 }
594
595 const {flatOptions} = await resolveXoConfig({
596 ...this.#linterOptions,
597 });
598
599 const {config: xoConfig, tsFilesGlob: tsGlob, tsFilesIgnoresGlob} = preProcessXoConfig([
600 this.#baseXoConfig,
601 ...flatOptions,
602 ]);
603
604 this.#xoConfig = xoConfig;
605 this.#tsFilesGlob.push(...tsGlob);
606 this.#tsFilesIgnoresGlob.push(...tsFilesIgnoresGlob);
607 }
608
609 setEslintConfig(cliIgnores: string[] = arrify(this.#baseXoConfig.ignores), stripDefaultIgnores = false) {
610 if (!this.#xoConfig) {

Callers 2

prepareEslintConfigMethod · 0.95
discoverFilesMethod · 0.95

Calls 2

resolveXoConfigFunction · 0.85
preProcessXoConfigFunction · 0.85

Tested by

no test coverage detected