Skip to content

Commit

Permalink
Simplify dart_flutter_team_lints install instructions (dart-lang#172)
Browse files Browse the repository at this point in the history
* Simplify dart_flutter_team_lints install instructions

* Update analysis docs links as well
  • Loading branch information
parlough authored Sep 20, 2023
1 parent ed39318 commit dcf5c4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions pkgs/dart_flutter_team_lints/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ wider ecosystem. For our community recommendations, see `package:lints` and
`package:flutter_lints`.

For documentation about customizing static analysis for your project, see
https://dart.dev/guides/language/analysis-options.
https://dart.dev/tools/analysis.

## Using the Lints

To use the lints, add a dependency in your `pubspec.yaml` file:
To use the lints, add the package as a dev dependency
in your `pubspec.yaml` file:

```yaml
dev_dependencies:
dart_flutter_team_lints: ^1.0.0
```bash
dart pub add dev:dart_flutter_team_lints
```

then, add an `analysis_options.yaml` file to your project:
Expand Down
2 changes: 1 addition & 1 deletion pkgs/dart_flutter_team_lints/lib/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# and `package:flutter_lints`.
#
# For documentation about customizing static analysis for your project, see
# https://dart.dev/guides/language/analysis-options.
# https://dart.dev/tools/analysis.

include: package:lints/recommended.yaml

Expand Down

0 comments on commit dcf5c4f

Please sign in to comment.