Closed
Description
A meta-issue to discuss and track work on linter support for patterns.
Updates:
- update
unnecessary_parenthesis
to support parenthesized patterns #59037 - ⚙️ extend
non_constant_identifier_names
for destructured variable declarations #58858- complete pending parser implementation of
pattern-for
statements
- complete pending parser implementation of
- 📄 document that
no_duplicate_case_values
is a no-op in Dart 3.0+ #58863 - 🐞
unnecessary_parenthesis
false positive withrecords
#59035 - update
unnecessary_const
to not flagconst
s in case expressions (required for patterns migration) #59029 - extend
constant_identifier_names
for destructured final variable declarations #58859 -
dart2js: please validate positions #3675
Additions:
- 🦅 ➕ dart-lang/linter#3671
- ⚙️ ➕ implement:
invalid_case_patterns
#59027 - 🤔 ➕ consider new lint:
use_logical_or
#58861 - 🤔 ➕ consider a new lint:
use_switch_expressions
#58862