Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit fc74ce0

Browse files
devoncarewparlough
andauthored
update the readme to clarify the package's goals (#130)
* update the readme to clarify the package's goals * Update README.md Co-authored-by: Parker Lougheed <[email protected]> * add a link to the topics documentation --------- Co-authored-by: Parker Lougheed <[email protected]>
1 parent 4e4c18f commit fc74ce0

File tree

3 files changed

+22
-10
lines changed

3 files changed

+22
-10
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
## 2.1.1-wip
1+
## 2.1.1
22

33
- Added the `analysis` and `lints` topics to the pubspec file.
4-
- Update the package's readme to include the lint rules that `package:lints/core.yaml` and `package:lints/recommended.yaml` include.
4+
- Update the package's readme to include the list of lint rules that
5+
`package:lints/core.yaml` and `package:lints/recommended.yaml` include.
56

67
## 2.1.0
78

README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,17 @@ to pass these lints. The recommended lints include all the core lints.
2525

2626
Additionally, a third lint set -
2727
[`package:flutter_lints`](https://pub.dev/packages/flutter_lints) - extends the
28-
recommended set with additional recommended Flutter-specific lints. Documentation on that can be found at [github.com/flutter/packages](https://github.com/flutter/packages/tree/main/packages/flutter_lints).
28+
recommended set with additional recommended Flutter-specific lints.
29+
30+
The Dart team will likely not provide recommendations past the `core` and
31+
`recommended` sets (e.g., a `strict` rule set). However, there are many such rule
32+
sets in the ecosystem (available at [pub.dev](https://pub.dev/)).
33+
34+
Rule set authors: consider adding the `lints` topic to your pubspec to allow
35+
easier discovery (e.g.,
36+
[pub.dev/packages?q=topic:lints](https://pub.dev/packages?q=topic%3Alints)).
37+
For more information about topics, see
38+
[dart.dev/tools/pub/pubspec#topics](https://dart.dev/tools/pub/pubspec#topics).
2939

3040
## Where these lints are used
3141

@@ -37,7 +47,8 @@ When uploading a package to the [pub.dev] package repository, packages are
3747

3848
## Enabling the lints
3949

40-
For new apps created with `dart create` the recommended set of lints are enabled by default.
50+
For new apps created with `dart create` the `recommended` set of lints are enabled
51+
by default.
4152

4253
For existing apps or packages, you can enable these lints via:
4354

@@ -69,12 +80,12 @@ lint sets, see [customizing static analysis].
6980
7081
The Dart language changes and the ecosystem continues to develop new best
7182
practices, so the lint sets must be periodically updated to reflect the best way
72-
we know to write Dart code. The informal process we use is:
83+
we know to write Dart code. The process we use is:
7384
74-
1. Anyone can file an [issue] to discuss a potential change to a lint set. (A
75-
change here means adding or removing a lint from one or both sets. If you
76-
want to discuss implementing an entirely new lint, the place to suggest that
77-
is at the [linter repo].) Feedback is welcome from any Dart user.
85+
1. Anyone can file an [issue] to discuss a potential change to a lint set
86+
(i.e., adding or removing a lint from one or both sets; if you're proposing
87+
an entirely new lint, the place to suggest that is at the [linter repo]).
88+
Feedback is welcome from any Dart user.
7889
7990
2. Periodically, a group of Dart and Flutter team members meet to review the
8091
suggestions and decide what to adopt.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: lints
2-
version: 2.1.1-wip
2+
version: 2.1.1
33
description: >
44
Official Dart lint rules. Defines the 'core' and 'recommended' set of lints
55
suggested by the Dart team.

0 commit comments

Comments
 (0)