Skip to content

Zekfad/dart_lints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pub package

This package contains set of lints for Flutter and Dart apps, packages, plugins.

This package is built on top of Flutter's flutter.yaml set of lints from package:flutter_lints and Dart's recommended.yaml set of lints from package:lints.

Usage

  1. Depend on this package as a dev_dependency by running flutter pub add --dev zekfad_lints.
  2. Create analysis_options.yaml file at the root of the package (alongside the pubspec.yaml file) and include desired config.

Configs

Drop-in replacements for Flutter's or Dart's default config (preference is given to usage of inferred types where it's possible):

  • package:zekfad_lints/recommended.yaml - Same as package:zekfad_lints/untyped/dart.yaml.
  • package:zekfad_lints/flutter.yaml - Same as package:zekfad_lints/untyped/flutter.yaml.

You may use additional configs for fine tuning to your preference:

  • package:zekfad_lints/base/dart.yaml - Base config for Dart projects.

  • package:zekfad_lints/typed/dart.yaml - Config for Dart projects with strict requirement for always specifying types.

  • package:zekfad_lints/untyped/dart.yaml - Config for Dart projects with strict requirement for omitting unnecessary types

  • package:zekfad_lints/base/flutter.yaml - Base config for Flutter projects.

  • package:zekfad_lints/typed/flutter.yaml - Config for Flutter projects with strict requirement for always specifying types.

  • package:zekfad_lints/untyped/flutter.yaml - Config for Flutter projects with strict requirement for omitting unnecessary types.