Dart lint rules

This package, package:pro_lints, contains pedantic recommended lint settings.

Enabling the lints

For existing apps or packages, you can enable these lints via:

  1. In a terminal, located at the root of your package, run this command:

    dart pub add --dev pro_lints
    
  2. Create or edit analysis_options.yaml file, located at the root of your package, and add the following:

    include: package:pro_lints/common.yaml
    

Customizing the predefined lint sets

For details on customizing static analysis above and beyond the predefined lint sets, see customizing static analysis.

Libraries