diff --git a/packages/core/README.md b/packages/core/README.md index 86de570c5f..6a77f7db94 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -177,9 +177,14 @@ async function loadConfig(options?: { configPath?: string; // allows to add custom `extends` instead of the one from the config file customExtends?: string[]; + // whether to resolve plugin paths without importing the plugin code + skipPluginEval?: boolean; }): Promise; ``` +Use `skipPluginEval` to read a config without executing any plugin code, for example when the plugins come from an untrusted source. +The returned config is incomplete: rules and decorators from plugins aren't loaded, and `extends` isn't resolved, so the presets it lists are ignored. + ### `lintConfig` Lint a configuration file to validate its structure and rules.