Sets the XO config on the XO instance.
()
| 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) { |
no test coverage detected