better_require_trailing_commas 2.5.1 copy "better_require_trailing_commas: ^2.5.1" to clipboard
better_require_trailing_commas: ^2.5.1 copied to clipboard

A lint rule that enforces trailing commas behaves like ESLint’s comma-dangle with the always-multiline option.

2.5.1 #

  • Feat: Added support for object/map/list patterns.
  • Fix: avoid_unnecessary_commas removes incorrectly closing braces of formal parameter lists.
  • Fix: avoid_unnecessary_commas reports even when there is one element in record literals, record type annots, and record patterns.

2.5.0 #

  • Since this version, I separated the minor versions depending on the supported analyzer version.
    • 2.3.0 supports analyzer ^9.0.0
    • 2.4.0 supports analyzer >=10.0.1 <12.0.0
    • 2.5.0 supports analyzer ^12.0.0
  • Minimum supported analyzer version is now v12.0.0

2.2.0 #

  • Added avoid_unnecessary_commas lint rule.
  • Fix detection logic for formal parameter lists and record type annots.

2.1.0 #

  • Require analyzer 10.0.1 or higher

2.0.5 #

  • Update README

2.0.4 #

  • Enabled the lint rule by default. Now diagnostics config in analysis_options.yaml is no longer needed.
  • Update README

2.0.3 #

  • Allow analyzer 8.x
  • Update README

2.0.2 #

  • Update README

2.0.1 #

  • Update README

2.0.0 #

  • Rewrite using analysis_server_plugin instead of custom_lint
    • Requires analyzer ^9.0.0 and Dart SDK ^3.10 (Flutter ^3.38)

1.0.4 #

  • Support analyzer v8.0.0

1.0.3 #

  • Upgrade custom_lint_builder to v0.8.0 (analyzer ^7.5.0)

1.0.2 #

  • Update package description
  • Update README

1.0.1 #

  • Update README
  • Upgrade analyzer_plugin to v0.13

1.0.0 #

  • Initial version.
1
likes
150
points
158
downloads

Documentation

API reference

Publisher

verified publisherchikach.net

Weekly Downloads

A lint rule that enforces trailing commas behaves like ESLint’s comma-dangle with the always-multiline option.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin, meta

More

Packages that depend on better_require_trailing_commas