Skip to content

Commit 9a94e8f

Browse files
authored
Update README.md
Fixes flutter#6
1 parent e122859 commit 9a94e8f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,15 @@ Here is how static analysis is used internally at Google:
3636
The currently enabled lints can be found in the sample
3737
[analysis_options.yaml](https://github.com/dart-lang/pedantic/blob/master/lib/analysis_options.yaml).
3838

39-
To use those lints you can add a dev dependency in your `pubspec.yaml`:
39+
To use those lints you can add a dependency in your `pubspec.yaml`:
4040

4141
```yaml
42+
# If you also need to import `package:pedantic/pedantic.dart`, it's a
43+
# normal dependency.
44+
dependencies:
45+
pedantic: '1.1.0'
46+
47+
# Or, if you just want `analysis_options.yaml`, it can be a dev dependency.
4248
dev_dependencies:
4349
pedantic: '1.1.0'
4450
```

0 commit comments

Comments
 (0)