Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

docs: Add better example for presets #1089

Merged
merged 1 commit into from
Dec 5, 2022
Merged
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
4 changes: 4 additions & 0 deletions website/docs/getting-started/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ To extend an existing preset add a reference to the `.yaml` file with the preset
dart_code_metrics:
extends:
- package:dart_code_metrics/presets/all.yaml
rules:
- arguments-ordering:
child-last: true
- avoid-banned-imports: false
```

All predefined preset [can be found here](https://github.com/dart-code-checker/dart-code-metrics/tree/master/lib/presets).
Expand Down