Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add formatter.version Parameter to pubspec.yaml #1654

Open
GiancarloCante opened this issue Feb 21, 2025 · 0 comments
Open

Add formatter.version Parameter to pubspec.yaml #1654

GiancarloCante opened this issue Feb 21, 2025 · 0 comments

Comments

@GiancarloCante
Copy link

Similar to how we can specify page_width in the formatter configuration:

formatter:
  page_width: 123

It would be useful to allow specifying the formatter version explicitly:

formatter:
  version: 3.7.0

Why?

There are many public packages that cannot update their minimum SDK version to Dart 3.7.0 due to compatibility concerns. However, we still want to adopt the new formatter as a standard across all packages.

Allowing a formatter.version parameter would let developers opt into the new formatting rules while maintaining backward compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant