Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<Config>;
```

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.
Expand Down
Loading