Skip to content

Official Dart lint rules applied with recommend set #2

@ghost

Description

BETA version 0.6.0 introduced custom lint rules, see Lint rules and analysis options updated #8 from geospatial repo.

However since that the Dart team has announced new official lint rules:

In general, it's better to follow recommend lints to keep code consistent with other developers.

Steps to configure official lints in old package

  1. First apply dart pub add --dev lints that adds lints: ^1.0.1 or other version to dev_dependencies
  2. Then edit analysis_options.yaml by adding include: package:lints/recommended.yaml
  3. Customize analysis_options.yaml

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions