lints icon indicating copy to clipboard operation
lints copied to clipboard

Official Dart lint rules; the core and recommended set of lints suggested by the Dart team.

Results 18 lints issues
Sort by recently updated
recently updated
newest added

We had initially selected `unawaited_futures` for inclusion in core lints, however ran into some issues that need resolving first, including: - [ ] https://github.com/dart-lang/linter/issues/2513, Method-side opt-out for unawaited_futures - [x]...

type-lint

**Describe the rule you'd like to see added and to what rule set** https://dart.dev/tools/linter-rules/unintended_html_in_doc_comment **Additional context** It's almost ALWAYS helpful. Trouble imagining false negatives. Need to wait until Dart 3.5...

type-lint
requires-dart-3.5

**Describe the rule you'd like to see added and to what rule set** `invalid_runtime_check_with_js_interop_types` is a new rule added to address runtime type inconsistencies for JS interop types available through...

type-lint
requires-dart-3.5

Some brief planning for publishing the next major version (from conversations on https://github.com/dart-lang/lints/pull/208 and https://github.com/dart-lang/lints/issues/205): - [ ] rev package:lints to the next stable version (`5.0.0`); publish - https://github.com/dart-lang/lints/pull/210 -...

- rev to 5.0.0 in preparation for publishing --- - [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR. Contribution guidelines: - See our [contributor...

In theory, const-ness should give apps a performance boost, but during development the lints enforcing const are constantly nagging developers: "Make this const" or "This cannot be const anymore". To...

type-lint

Hey all. As we wrap up analyzer support for wildcards, we've got some open questions about how we want the linter to behave to support (and nudge folks towards idiomatic...

type-question

**Describe the rule you'd like to see added and to what rule set** I'd like to see [`always_declare_return_types`](https://dart.dev/tools/linter-rules/always_declare_return_types) included in the rules. To what rule set? Ideally core (but I'll...

type-lint