Do these lint rules automatically come with new flutter apps?

Are the lint rules we’re using standard for all new Flutter apps or would we want to get them from somewhere else? If we get them from somewhere else, how would we incorporate them?

The lint rules we’re using are what we use here at raywenderlich.com. Many are standard, some are for our environment (i.e. for articles and the online reader we don’t want code to go past 80 characters).

The rules are in analysis_options.yaml which is at the same level as pubspec.yaml.

You can find more details about the lint rules here: Linter for Dart. On this page you’ll find links to the rules the Google Dart team uses, Dart team recommended rules, and rules recommend for Flutter projects (these are defaults when running flutter create).

Hope this helps.

1 Like