-
Notifications
You must be signed in to change notification settings - Fork 127
Closed
Labels
Description
Hey @munificent is it possible to allow configuration of dartfmt line length in pubspec.yaml or some other common project configuration file? Of the last 5 flutter packages I've pulled down to work on 2 were using a 120 character line length which is becoming more and more common in Flutter projects.
I understand that we have access to IDE settings for line length but this is non-viable because it's IDE specific and not project-specific. Project specific would allow a package maintainer to make an increasingly common style choice and have all maintainers automatically use it without having to worry about IDE settings.
Any thoughts?
name: foo
description: An example app.
version: 1.0.0
environment:
sdk: ">=2.6.0 <3.0.0"
dartfmt:
line_length: 120
rich-j, rasmusir, paulkastel, luanpotter, ristiisa and 156 moreolexale, eli1stark, modulovalue and lucavenirLaysDragonLaysDragon, HosamHasanRamadan, MohamedAbdallah-14, SirusCodes, herveGuigoz and 1 moreLaysDragon, MohamedAbdallah-14, herveGuigoz, adcmdev and SebastianEngelLaysDragon, MohamedAbdallah-14, nguyenvanquangqui, herveGuigoz and SebastianEngel